Skip to content

Commit 4e50038

Browse files
committed
---
yaml --- r: 162286 b: refs/heads/auto c: 3246d4f h: refs/heads/master v: v3
1 parent 6df48d9 commit 4e50038

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 616af6eb83630b76bb3a9bde57a00f5ebe5dbd6c
13+
refs/heads/auto: 3246d4f36979658c61c9e2bcfe524b1d45b3257a
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/libsyntax/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn should_fail(i: &ast::Item) -> ShouldFail {
369369
match i.attrs.iter().find(|attr| attr.check_name("should_fail")) {
370370
Some(attr) => {
371371
let msg = attr.meta_item_list()
372-
.and_then(|list| list.iter().find(|mi| mi.check_name("message")))
372+
.and_then(|list| list.iter().find(|mi| mi.check_name("expected")))
373373
.and_then(|mi| mi.value_str());
374374
ShouldFail::Yes(msg)
375375
}

branches/auto/src/libtest/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Test Attributes:
374374
#[should_fail] - This function (also labeled with #[test]) will only pass if
375375
the code causes a failure (an assertion failure or panic!)
376376
A message may be provided, which the failure string must
377-
contain: #[should_fail(message = "foo")].
377+
contain: #[should_fail(expected = "foo")].
378378
#[ignore] - When applied to a function which is already attributed as a
379379
test, then the test runner will ignore these tests during
380380
normal test runs. Running with --ignored will run these

branches/auto/src/test/run-fail/test-should-fail-bad-message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// ignore-pretty: does not work well with `--test`
1515

1616
#[test]
17-
#[should_fail(message = "foobar")]
17+
#[should_fail(expected = "foobar")]
1818
fn test_foo() {
1919
panic!("blah")
2020
}

branches/auto/src/test/run-pass/test-should-fail-good-message.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
// ignore-pretty: does not work well with `--test`
1313

1414
#[test]
15-
#[should_fail(message = "foo")]
15+
#[should_fail(expected = "foo")]
1616
fn test_foo() {
1717
panic!("foo bar")
1818
}
1919

2020
#[test]
21-
#[should_fail(message = "foo")]
21+
#[should_fail(expected = "foo")]
2222
fn test_foo_dynamic() {
2323
panic!("{} bar", "foo")
2424
}

0 commit comments

Comments
 (0)