Skip to content

Commit a992f44

Browse files
committed
Use check-run-results for run-fail test stderr
1 parent b02c863 commit a992f44

File tree

364 files changed

+877
-220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+877
-220
lines changed

src/tools/tidy/src/ui_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use ignore::Walk;
1717
const ENTRY_LIMIT: u32 = 901;
1818
// FIXME: The following limits should be reduced eventually.
1919

20-
const ISSUES_ENTRY_LIMIT: u32 = 1672;
20+
const ISSUES_ENTRY_LIMIT: u32 = 1684;
2121

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

tests/ui/array-slice-vec/bounds-check-no-overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:index out of bounds
2+
//@ check-run-results:index out of bounds
33
//@ ignore-emscripten no processes
44

55
use std::mem::size_of;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
thread 'main' panicked at $DIR/bounds-check-no-overflow.rs:9:5:
2+
index out of bounds: the len is 3 but the index is 2305843009213693952
3+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

tests/ui/array-slice-vec/dst-raw-slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test bounds checking for DST raw slices
22

33
//@ run-fail
4-
//@ error-pattern:index out of bounds
4+
//@ check-run-results:index out of bounds
55
//@ ignore-emscripten no processes
66

77
#[allow(unconditional_panic)]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
thread 'main' panicked at $DIR/dst-raw-slice.rs:11:18:
2+
index out of bounds: the len is 3 but the index is 3
3+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

tests/ui/array-slice-vec/vec-overrun.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:index out of bounds: the len is 1 but the index is 2
2+
//@ check-run-results:index out of bounds: the len is 1 but the index is 2
33
//@ ignore-emscripten no processes
44

55
fn main() {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
thread 'main' panicked at $DIR/vec-overrun.rs:11:17:
2+
index out of bounds: the len is 1 but the index is 2
3+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-completion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// be talking about `async fn`s instead.
33

44
//@ run-fail
5-
//@ error-pattern: thread 'main' panicked
6-
//@ error-pattern: `async fn` resumed after completion
5+
//@ check-run-results: thread 'main' panicked
6+
//@ check-run-results: `async fn` resumed after completion
77
//@ edition:2018
88

99
#![feature(coroutines, coroutine_trait)]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
thread 'main' panicked at $DIR/issue-65419-async-fn-resume-after-completion.rs:11:16:
2+
`async fn` resumed after completion
3+
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
//@ run-fail
55
//@ needs-unwind
6-
//@ error-pattern: thread 'main' panicked
7-
//@ error-pattern: `async fn` resumed after panicking
6+
//@ check-run-results: thread 'main' panicked
7+
//@ check-run-results: `async fn` resumed after panicking
88
//@ edition:2018
99

1010
#![feature(coroutines, coroutine_trait)]

0 commit comments

Comments
 (0)