Skip to content

Commit

Permalink
Rewrite version test as UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Apr 6, 2024
1 parent 83d0a94 commit 6a37b40
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 19 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 @@ -321,7 +321,6 @@ run-make/use-suggestions-rust-2018/Makefile
run-make/used-cdylib-macos/Makefile
run-make/used/Makefile
run-make/valid-print-requests/Makefile
run-make/version/Makefile
run-make/volatile-intrinsics/Makefile
run-make/wasm-exceptions-nostd/Makefile
run-make/wasm-override-linker/Makefile
Expand Down
2 changes: 1 addition & 1 deletion src/tools/tidy/src/ui_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ENTRY_LIMIT: usize = 900;
// FIXME: The following limits should be reduced eventually.

const ISSUES_ENTRY_LIMIT: usize = 1733;
const ROOT_ENTRY_LIMIT: usize = 860;
const ROOT_ENTRY_LIMIT: usize = 859;

const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
"rs", // test source files
Expand Down
6 changes: 0 additions & 6 deletions tests/run-make/version/Makefile

This file was deleted.

2 changes: 0 additions & 2 deletions tests/ui/does-nothing.rs

This file was deleted.

9 changes: 0 additions & 9 deletions tests/ui/does-nothing.stderr

This file was deleted.

8 changes: 8 additions & 0 deletions tests/ui/version/version-info-flags.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Check that rustc accepts various version info flags.
//@ revisions: version verbose-version long-verbose-version
//@[version] check-pass
//@[version] compile-flags: -V
//@[verbose-version] compile-flags: -vV
//@[long-verbose-verison] compile-flags: --version --verbose

fn main() {}

0 comments on commit 6a37b40

Please sign in to comment.