Skip to content

Commit 50486be

Browse files
committed
testsuite/doc: Check the arguments used to invoke the browser
Previously we apparently weren't doing this as we weren't checking stdout.
1 parent ed46a9a commit 50486be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/testsuite/doc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ fn doc_workspace_open_different_library_and_package_names() {
11841184
.env("BROWSER", "echo")
11851185
.with_stderr_contains("[..] Documenting foo v0.1.0 ([..])")
11861186
.with_stderr_contains("[..] [CWD]/target/doc/foolib/index.html")
1187+
.with_stdout_contains("[CWD]/target/doc/foolib/index.html")
11871188
.run();
11881189

11891190
p.change_file(
@@ -1197,7 +1198,7 @@ fn doc_workspace_open_different_library_and_package_names() {
11971198
// check that the cargo config overrides the browser env var
11981199
p.cargo("doc --open")
11991200
.env("BROWSER", "true")
1200-
.with_stdout_contains("[..]a [CWD]/target/doc/foolib/index.html")
1201+
.with_stdout_contains("a [CWD]/target/doc/foolib/index.html")
12011202
.run();
12021203
}
12031204

0 commit comments

Comments
 (0)