Skip to content

Commit

Permalink
fix compiletest to search for two dash and run make fulldeps test
Browse files Browse the repository at this point in the history
  • Loading branch information
ABouttefeux committed May 9, 2021
1 parent f6b8b78 commit 4ce2e33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/issue-22131/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ all: foo.rs
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
$(RUSTDOC) --test --cfg 'feature="bar"' \
-L $(TMPDIR) foo.rs |\
$(CGREP) 'foo.rs - foo (line 1) ... ok'
$(CGREP) 'foo.rs - foo (line 1) - run ... ok'
2 changes: 1 addition & 1 deletion src/test/run-make-fulldeps/test-harness/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
all:
# check that #[cfg_attr(..., ignore)] does the right thing.
$(RUSTC) --test test-ignore-cfg.rs --cfg ignorecfg
$(call RUN,test-ignore-cfg) | $(CGREP) 'shouldnotignore ... ok' 'shouldignore ... ignored'
$(call RUN,test-ignore-cfg) | $(CGREP) 'shouldnotignore - run ... ok' 'shouldignore - ignore ... ignored'
$(call RUN,test-ignore-cfg --quiet) | $(CGREP) -e "^i\.$$"
$(call RUN,test-ignore-cfg --quiet) | $(CGREP) -v 'should'
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ impl<'test> TestCx<'test> {
let mut tested = 0;
for _ in res.stdout.split('\n').filter(|s| s.starts_with("test ")).inspect(|s| {
let tmp: Vec<&str> = s.split(" - ").collect();
if tmp.len() == 2 {
if tmp.len() == 3 {
let path = tmp[0].rsplit("test ").next().unwrap();
if let Some(ref mut v) = files.get_mut(&path.replace('\\', "/")) {
tested += 1;
Expand Down

0 comments on commit 4ce2e33

Please sign in to comment.