about summary refs log tree commit diff
path: root/tests/run-make/rustdoc-default-output/rmake.rs
blob: 5f9c501e5286b2b2e7dee1e7c33a50426f518d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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::{diff, rustdoc};

fn main() {
    let out = 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();
}