fix compiletest to search for two dash and run make fulldeps test
This commit is contained in:
parent
f6b8b78063
commit
4ce2e335d9
3 changed files with 3 additions and 3 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue