Skip to content

Commit

Permalink
Extend tidy to allow conditionalizing tests for multiple targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSchouten committed Jan 11, 2018
1 parent cc8565b commit 6a8d55a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/tidy/src/pal.rs
Expand Up @@ -168,8 +168,8 @@ fn find_test_mod(contents: &str) -> usize {
let prev_newline_idx = contents[..prev_newline_idx].rfind('\n');
if let Some(nl) = prev_newline_idx {
let prev_line = &contents[nl + 1 .. mod_tests_idx];
let emcc_cfg = "cfg(all(test, not(target_os";
if prev_line.contains(emcc_cfg) {
if prev_line.contains("cfg(all(test, not(target_os")
|| prev_line.contains("cfg(all(test, not(any(target_os") {
nl
} else {
mod_tests_idx
Expand Down

0 comments on commit 6a8d55a

Please sign in to comment.