You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #14079 - dieterplex:snapboxport4co, r=weihanglo
test: Migrate tests/testsuite/co*.rs to snapbox
Migrating files:
- tests/testsuite/collisions.rs
- `with_stderr_does_not_contain` in test `collision_doc_host_target_feature_split`
- tests/testsuite/concurrent.rs
- tests/testsuite/config.rs
- tests/testsuite/config_cli.rs
- tests/testsuite/config_include.rs
- tests/testsuite/corrupt_git.rs
Testing with command `SNAPSHOTS=overwrite cargo test collisions::` or so.
Part of #14039
// `j=1` is required because on Windows you'll get an error due to
84
86
// two processes writing to the file at the same time.
85
87
p.cargo("build --examples -j=1")
86
-
.with_stderr_contains("\
88
+
.with_stderr_data(str![[r#"
89
+
...
87
90
[WARNING] output filename collision.
88
-
The example target `ex1` in package `b v1.0.0 ([..]/foo/b)` has the same output filename as the example target `ex1` in package `a v1.0.0 ([..]/foo/a)`.
89
-
Colliding filename is: [..]/foo/target/debug/examples/ex1[EXE]
91
+
The example target `ex1` in package `b v1.0.0 ([ROOT]/foo/b)` has the same output filename as the example target `ex1` in package `a v1.0.0 ([ROOT]/foo/a)`.
92
+
Colliding filename is: [ROOT]/foo/target/debug/examples/ex1[EXE]
90
93
The targets should have unique names.
91
94
Consider changing their names to be unique or compiling them separately.
92
95
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
The example target `foo` in package `foo v1.0.0 ([..]/foo)` has the same output filename as the bin target `foo` in package `foo v1.0.0 ([..]/foo)`.
118
-
Colliding filename is: [..]/foo/out/foo[EXE]
122
+
The example target `foo` in package `foo v1.0.0 ([ROOT]/foo)` has the same output filename as the bin target `foo` in package `foo v1.0.0 ([ROOT]/foo)`.
123
+
Colliding filename is: [ROOT]/foo/out/foo[EXE]
119
124
The exported filenames should be unique.
120
125
Consider changing their names to be unique or compiling them separately.
121
126
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
122
-
")
127
+
...
128
+
129
+
"#]])
123
130
.run();
124
131
}
125
132
@@ -155,17 +162,17 @@ fn collision_doc() {
155
162
.build();
156
163
157
164
p.cargo("doc -j=1")
158
-
.with_stderr_contains(
159
-
"\
165
+
.with_stderr_data(str![[r#"
166
+
...
160
167
[WARNING] output filename collision.
161
-
The lib target `foo` in package `foo2 v0.1.0 ([..]/foo/foo2)` has the same output \
162
-
filename as the lib target `foo` in package `foo v0.1.0 ([..]/foo)`.
163
-
Colliding filename is: [..]/foo/target/doc/foo/index.html
168
+
The lib target `foo` in package `foo2 v0.1.0 ([ROOT]/foo/foo2)` has the same output filename as the lib target `foo` in package `foo v0.1.0 ([ROOT]/foo)`.
169
+
Colliding filename is: [ROOT]/foo/target/doc/foo/index.html
164
170
The targets should have unique names.
165
171
This is a known bug where multiple crates with the same name use
166
172
the same path; see <https://github.com/rust-lang/cargo/issues/6313>.
[LOCKING] 3 packages to latest compatible versions
559
576
[DOWNLOADING] crates ...
560
-
[DOWNLOADED] foo-macro v1.0.0 [..]
561
-
warning: output filename collision.
562
-
The lib target `foo_macro` in package `foo-macro v1.0.0` has the same output filename as the lib target `foo_macro` in package `foo-macro v1.0.0 [..]`.
563
-
Colliding filename is: [CWD]/target/doc/foo_macro/index.html
The lib target `foo_macro` in package `foo-macro v1.0.0` has the same output filename as the lib target `foo_macro` in package `foo-macro v1.0.0 ([ROOT]/foo/foo-macro)`.
580
+
Colliding filename is: [ROOT]/foo/target/doc/foo_macro/index.html
564
581
The targets should have unique names.
565
582
This is a known bug where multiple crates with the same name use
566
583
the same path; see <https://github.com/rust-lang/cargo/issues/6313>.
567
584
[CHECKING] foo-macro v1.0.0
568
585
[DOCUMENTING] foo-macro v1.0.0
569
-
[CHECKING] abc v1.0.0 [..]
570
-
[DOCUMENTING] foo-macro v1.0.0 [..]
571
-
[DOCUMENTING] abc v1.0.0 [..]
572
-
[FINISHED] [..]
573
-
[GENERATED] [CWD]/target/doc/abc/index.html and 1 other file
0 commit comments