Skip to content

Commit 034b1cd

Browse files
author
bors-servo
authored
Auto merge of #372 - servo:testup, r=nox
Update rustc-test to 0.2, fix #371 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/372) <!-- Reviewable:end -->
2 parents dd068e5 + 6d2411f commit 034b1cd

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ harness = false
3131
test = false
3232

3333
[dev-dependencies]
34-
rustc-test = "0.1"
34+
rustc-test = "0.2"
3535
rustc-serialize = "0.3"
3636
serde_json = ">=0.6.1, <0.9"
3737

idna/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ harness = false
1818
name = "unit"
1919

2020
[dev-dependencies]
21-
rustc-test = "0.1"
21+
rustc-test = "0.2"
2222
rustc-serialize = "0.3"
2323

2424
[dependencies]

idna/tests/tests.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ fn main() {
1010
{
1111
let mut add_test = |name, run| {
1212
tests.push(test::TestDescAndFn {
13-
desc: test::TestDesc {
14-
name: test::DynTestName(name),
15-
ignore: false,
16-
should_panic: test::ShouldPanic::No,
17-
},
13+
desc: test::TestDesc::new(test::DynTestName(name)),
1814
testfn: run,
1915
})
2016
};

tests/data.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,7 @@ fn main() {
188188
{
189189
let mut add_one = |name: String, run: test::TestFn| {
190190
tests.push(test::TestDescAndFn {
191-
desc: test::TestDesc {
192-
name: test::DynTestName(name),
193-
ignore: false,
194-
should_panic: test::ShouldPanic::No,
195-
},
191+
desc: test::TestDesc::new(test::DynTestName(name)),
196192
testfn: run,
197193
})
198194
};

0 commit comments

Comments
 (0)