From e0625b4586c5a0f855a1157b09ae384f5de0ecf7 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Mon, 12 Jun 2023 18:07:04 +1000 Subject: Migrate most of the existing coverage tests over to `run-coverage` --- tests/run-coverage/test_harness.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/run-coverage/test_harness.rs (limited to 'tests/run-coverage/test_harness.rs') diff --git a/tests/run-coverage/test_harness.rs b/tests/run-coverage/test_harness.rs new file mode 100644 index 00000000000..12a755734c1 --- /dev/null +++ b/tests/run-coverage/test_harness.rs @@ -0,0 +1,10 @@ +// Verify that the entry point injected by the test harness doesn't cause +// weird artifacts in the coverage report (e.g. issue #10749). + +// compile-flags: --test + +#[allow(dead_code)] +fn unused() {} + +#[test] +fn my_test() {} -- cgit 1.4.1-3-g733a5