Skip to content

Commit

Permalink
rewrite rustdoc-default-output to rmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Aug 2, 2024
1 parent e9f45e1 commit c27fa5c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ run-make/issue-36710/Makefile
run-make/issue-47551/Makefile
run-make/issue-69368/Makefile
run-make/issue-84395-lto-embed-bitcode/Makefile
run-make/issue-88756-default-output/Makefile
run-make/jobserver-error/Makefile
run-make/libs-through-symlinks/Makefile
run-make/libtest-json/Makefile
Expand Down
4 changes: 0 additions & 4 deletions tests/run-make/issue-88756-default-output/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion tests/run-make/issue-88756-default-output/README.md

This file was deleted.

1 change: 0 additions & 1 deletion tests/run-make/issue-88756-default-output/x.rs

This file was deleted.

16 changes: 16 additions & 0 deletions tests/run-make/rustdoc-default-output/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Calling rustdoc with no arguments, which should bring up a help menu, used to
// cause an error as rustdoc expects an input file. Fixed in #98331, this test
// ensures the output of rustdoc's help menu is as expected.
// See https://github.com/rust-lang/rust/issues/88756

use run_make_support::{bare_rustdoc, diff};

fn main() {
let out = bare_rustdoc().run().stdout_utf8();
diff()
.expected_file("output-default.stdout")
.actual_text("actual", out)
// replace the channel type in the URL with $CHANNEL
.normalize(r"nightly/|beta/|stable/|1\.[0-9]+\.[0-9]+/", "$$CHANNEL/")
.run();
}

0 comments on commit c27fa5c

Please sign in to comment.