Skip to content

Commit 6a37b40

Browse files
committed
Rewrite version test as UI test
1 parent 83d0a94 commit 6a37b40

File tree

6 files changed

+9
-19
lines changed

6 files changed

+9
-19
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ run-make/use-suggestions-rust-2018/Makefile
321321
run-make/used-cdylib-macos/Makefile
322322
run-make/used/Makefile
323323
run-make/valid-print-requests/Makefile
324-
run-make/version/Makefile
325324
run-make/volatile-intrinsics/Makefile
326325
run-make/wasm-exceptions-nostd/Makefile
327326
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 = 1733;
21-
const ROOT_ENTRY_LIMIT: usize = 860;
21+
const ROOT_ENTRY_LIMIT: usize = 859;
2222

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

tests/run-make/version/Makefile

-6
This file was deleted.

tests/ui/does-nothing.rs

-2
This file was deleted.

tests/ui/does-nothing.stderr

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

0 commit comments

Comments
 (0)