From 13e8313f15cb334827003f1d21720ff91b286991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= <39484203+jieyouxu@users.noreply.github.com> Date: Tue, 17 Dec 2024 21:01:45 +0800 Subject: [PATCH] bootstrap: use specific-purpose ui test path I wanted to move some ui tests around, which broke `test_valid` since it was referencing a non-specific-purpose ui test. --- src/bootstrap/src/core/builder/tests.rs | 2 +- tests/ui/bootstrap/self-test/a.rs | 2 ++ tests/ui/bootstrap/self-test/b.rs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tests/ui/bootstrap/self-test/a.rs create mode 100644 tests/ui/bootstrap/self-test/b.rs diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs index b2ffbd9c70f6a..819a552093be4 100644 --- a/src/bootstrap/src/core/builder/tests.rs +++ b/src/bootstrap/src/core/builder/tests.rs @@ -91,7 +91,7 @@ macro_rules! rustc { #[test] fn test_valid() { // make sure multi suite paths are accepted - check_cli(["test", "tests/ui/attr-start.rs", "tests/ui/attr-shebang.rs"]); + check_cli(["test", "tests/ui/bootstrap/self-test/a.rs", "tests/ui/bootstrap/self-test/b.rs"]); } #[test] diff --git a/tests/ui/bootstrap/self-test/a.rs b/tests/ui/bootstrap/self-test/a.rs new file mode 100644 index 0000000000000..64d2d6f11bbdd --- /dev/null +++ b/tests/ui/bootstrap/self-test/a.rs @@ -0,0 +1,2 @@ +//! Not used by compiler, this is used by bootstrap cli self-test. +//@ ignore-test diff --git a/tests/ui/bootstrap/self-test/b.rs b/tests/ui/bootstrap/self-test/b.rs new file mode 100644 index 0000000000000..91f92f67910b7 --- /dev/null +++ b/tests/ui/bootstrap/self-test/b.rs @@ -0,0 +1,2 @@ +//! Not used by compiler, used by bootstrap cli self-test. +//@ ignore-test