mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Skip the test when testing locally
This commit is contained in:
parent
040f37a99d
commit
08a5f1e52a
1 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,7 @@ mod tests {
|
||||||
},
|
},
|
||||||
DiagnosticsConfig,
|
DiagnosticsConfig,
|
||||||
};
|
};
|
||||||
|
use test_utils::skip_slow_tests;
|
||||||
|
|
||||||
#[track_caller]
|
#[track_caller]
|
||||||
fn check_diagnostics_no_bails(ra_fixture: &str) {
|
fn check_diagnostics_no_bails(ra_fixture: &str) {
|
||||||
|
@ -1006,9 +1007,12 @@ fn f() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn exponential_match() {
|
fn exponential_match() {
|
||||||
|
if skip_slow_tests() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Constructs a match where match checking takes exponential time. Ensures we bail early.
|
// Constructs a match where match checking takes exponential time. Ensures we bail early.
|
||||||
use std::fmt::Write;
|
use std::fmt::Write;
|
||||||
let struct_arity = 30;
|
let struct_arity = 50;
|
||||||
let mut code = String::new();
|
let mut code = String::new();
|
||||||
write!(code, "struct BigStruct {{").unwrap();
|
write!(code, "struct BigStruct {{").unwrap();
|
||||||
for i in 0..struct_arity {
|
for i in 0..struct_arity {
|
||||||
|
|
Loading…
Reference in a new issue