Skip to content

Commit 3dff174

Browse files
committed
---
yaml --- r: 272761 b: refs/heads/beta c: ad3ed80 h: refs/heads/master i: 272759: 417b6d1
1 parent 9d9906c commit 3dff174

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 0d6b4e03862065d0b1296e93c9bdfed25e0f60a4
26+
refs/heads/beta: ad3ed805030a128d83349cbf3c2dfab15c8a61a7
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/COMPILER_TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ whole, instead of just a few lines inside the test.
4242
* `ignore-test` always ignores the test
4343
* `ignore-lldb` and `ignore-gdb` will skip the debuginfo tests
4444
* `min-{gdb,lldb}-version`
45-
* `should-panic` indicates that the test should fail; used for "meta testing",
45+
* `should-fail` indicates that the test should fail; used for "meta testing",
4646
where we test the compiletest program itself to check that it will generate
4747
errors in appropriate scenarios
4848

branches/beta/src/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn
359359
desc: test::TestDesc {
360360
name: make_test_name(config, testpaths),
361361
ignore: early_props.ignore,
362-
should_panic: if early_props.should_panic {
362+
should_panic: if early_props.should_fail {
363363
test::ShouldPanic::Yes
364364
} else {
365365
test::ShouldPanic::No

branches/beta/src/compiletest/header.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub fn load_props_into(props: &mut TestProps, testfile: &Path, cfg: Option<&str>
179179

180180
pub struct EarlyProps {
181181
pub ignore: bool,
182-
pub should_panic: bool,
182+
pub should_fail: bool,
183183
}
184184

185185
// scan the file to detect whether the test should be ignored and
@@ -188,7 +188,7 @@ pub struct EarlyProps {
188188
pub fn early_props(config: &Config, testfile: &Path) -> EarlyProps {
189189
let mut props = EarlyProps {
190190
ignore: false,
191-
should_panic: false,
191+
should_fail: false,
192192
};
193193

194194
iter_header(testfile, None, &mut |ln| {
@@ -206,9 +206,9 @@ pub fn early_props(config: &Config, testfile: &Path) -> EarlyProps {
206206
ignore_gdb(config, ln) ||
207207
ignore_lldb(config, ln);
208208

209-
props.should_panic =
210-
props.should_panic ||
211-
parse_name_directive(ln, "should-panic");
209+
props.should_fail =
210+
props.should_fail ||
211+
parse_name_directive(ln, "should-fail");
212212
});
213213

214214
return props;

branches/beta/src/test/compile-fail/meta-expected-error-wrong-rev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// revisions: a
12-
// should-panic
12+
// should-fail
1313
// pretty-expanded FIXME #23616
1414

1515
// This is a "meta-test" of the compilertest framework itself. In

0 commit comments

Comments
 (0)