Skip to content

Commit f7b3986

Browse files
committed
Update trycmd test files
1 parent 04cfb74 commit f7b3986

2 files changed

Lines changed: 124 additions & 5 deletions

File tree

Lines changed: 100 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,107 @@
11
4 candidates in 4 tests in 1 source file
22
fixtures/cfg/src/lib.rs: dry running
33
fixtures/cfg/src/lib.rs: mutilating
4-
fixtures/cfg/src/lib.rs:5:5-5:12: Warning: Failed to run test `passed`
4+
fixtures/cfg/src/lib.rs:5:5-5:12: Warning: Failed to run test `passed`: code=0
5+
stdout=```
6+
7+
running 0 tests
8+
9+
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in [..]s
10+
11+
```
12+
13+
stderr=```
14+
...
15+
warning: function `noop` is never used
16+
--> [..]:9:4
17+
|
18+
9 | fn noop() {}
19+
| ^^^^
20+
|
21+
= note: `#[warn(dead_code)]` on by default
22+
23+
warning: `cfg` (lib test) generated 1 warning
24+
Finished `test` profile [unoptimized + debuginfo] target(s) in [..]s
25+
Running unittests [..] ([..])
26+
```
27+
28+
529

630
This may indicate a bug in Necessist. Consider opening an issue at: https://github.com/trailofbits/necessist/issues
731

832
Silence this warning with: --allow run-test-failed
9-
fixtures/cfg/src/lib.rs:16:9-16:16: Warning: Failed to run test `timed_out`
10-
fixtures/cfg/src/lib.rs:24:5-24:12: Warning: Failed to run test `failed`
11-
fixtures/cfg/src/lib.rs:32:18-32:27: Warning: Failed to run test `nonbuildable`
33+
fixtures/cfg/src/lib.rs:16:9-16:16: Warning: Failed to run test `timed_out`: code=0
34+
stdout=```
35+
36+
running 0 tests
37+
38+
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in [..]s
39+
40+
```
41+
42+
stderr=```
43+
...
44+
warning: function `noop` is never used
45+
--> [..]:9:4
46+
|
47+
9 | fn noop() {}
48+
| ^^^^
49+
|
50+
= note: `#[warn(dead_code)]` on by default
51+
52+
warning: `cfg` (lib test) generated 1 warning
53+
Finished `test` profile [unoptimized + debuginfo] target(s) in [..]s
54+
Running unittests [..] ([..])
55+
```
56+
57+
58+
fixtures/cfg/src/lib.rs:24:5-24:12: Warning: Failed to run test `failed`: code=0
59+
stdout=```
60+
61+
running 0 tests
62+
63+
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in [..]s
64+
65+
```
66+
67+
stderr=```
68+
...
69+
warning: function `noop` is never used
70+
--> [..]:9:4
71+
|
72+
9 | fn noop() {}
73+
| ^^^^
74+
|
75+
= note: `#[warn(dead_code)]` on by default
76+
77+
warning: `cfg` (lib test) generated 1 warning
78+
Finished `test` profile [unoptimized + debuginfo] target(s) in [..]s
79+
Running unittests [..] ([..])
80+
```
81+
82+
83+
fixtures/cfg/src/lib.rs:32:18-32:27: Warning: Failed to run test `nonbuildable`: code=0
84+
stdout=```
85+
86+
running 0 tests
87+
88+
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in [..]s
89+
90+
```
91+
92+
stderr=```
93+
...
94+
warning: function `noop` is never used
95+
--> [..]:9:4
96+
|
97+
9 | fn noop() {}
98+
| ^^^^
99+
|
100+
= note: `#[warn(dead_code)]` on by default
101+
102+
warning: `cfg` (lib test) generated 1 warning
103+
Finished `test` profile [unoptimized + debuginfo] target(s) in [..]s
104+
Running unittests [..] ([..])
105+
```
106+
107+
Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1-
Error: Failed to run test `passed`
1+
Error: Failed to run test `passed`: code=0
2+
stdout=```
3+
4+
running 0 tests
5+
6+
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in [..]s
7+
8+
```
9+
10+
stderr=```
11+
warning: function `noop` is never used
12+
--> [..]:9:4
13+
|
14+
9 | fn noop() {}
15+
| ^^^^
16+
|
17+
= note: `#[warn(dead_code)]` on by default
18+
19+
warning: `cfg` (lib test) generated 1 warning
20+
Finished `test` profile [unoptimized + debuginfo] target(s) in [..]s
21+
Running unittests [..] ([..])
22+
```
23+
24+
225

326
This may indicate a bug in Necessist. Consider opening an issue at: https://github.com/trailofbits/necessist/issues
427

0 commit comments

Comments
 (0)