Skip to content

Commit 5c580d3

Browse files
committed
rewrite version test in Rust
tidy: remove version from allowed_run_make_makefiles convert version to ui test simplify: only write check-pass once bump up max ROOT_ENTRY_LIMIT bump ROOT_ENTRY_LIMIT only what is required
1 parent bf71dae commit 5c580d3

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ run-make/use-suggestions-rust-2018/Makefile
325325
run-make/used-cdylib-macos/Makefile
326326
run-make/used/Makefile
327327
run-make/valid-print-requests/Makefile
328-
run-make/version/Makefile
329328
run-make/volatile-intrinsics/Makefile
330329
run-make/wasm-exceptions-nostd/Makefile
331330
run-make/wasm-override-linker/Makefile

src/tools/tidy/src/ui_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ENTRY_LIMIT: usize = 900;
1818
// FIXME: The following limits should be reduced eventually.
1919

2020
const ISSUES_ENTRY_LIMIT: usize = 1750;
21-
const ROOT_ENTRY_LIMIT: usize = 860;
21+
const ROOT_ENTRY_LIMIT: usize = 861;
2222

2323
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
2424
"rs", // test source files

tests/run-make/version/Makefile

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Check that rustc accepts various version info flags.
2+
//@ revisions: version verbose-version long-verbose-version
3+
//@ check-pass
4+
5+
//@[version] compile-flags: -V
6+
//@[verbose-version] compile-flags: -vV
7+
//@[long-verbose-version] compile-flags: --version --verbose
8+
9+
fn main() {}

0 commit comments

Comments
 (0)