From 0b791f5143d387179a4960fb8141dd30a935bdec Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 20 Oct 2011 20:56:33 -0700 Subject: [PATCH] Restore broken tests in stdtest::test --- src/test/stdtest/test.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/test/stdtest/test.rs b/src/test/stdtest/test.rs index b9574a64cab..ad833949ee7 100644 --- a/src/test/stdtest/test.rs +++ b/src/test/stdtest/test.rs @@ -6,22 +6,19 @@ #[test] fn do_not_run_ignored_tests() { - /*let ran = @mutable false; - let f = bind fn (ran: @mutable bool) { *ran = true; }(ran); - + fn f() { fail; } let desc = {name: "whatever", fn: f, ignore: true}; - - test::run_test(desc, test::default_test_to_task); - - assert (*ran == false);*/ + let future = test::run_test(desc, test::default_test_to_task); + let result = future.wait(); + assert result != test::tr_ok; } #[test] fn ignored_tests_result_in_ignored() { - /*fn f() { } + fn f() { } let desc = {name: "whatever", fn: f, ignore: true}; let res = test::run_test(desc, test::default_test_to_task).wait(); - assert (res == test::tr_ignored);*/ + assert (res == test::tr_ignored); } #[test]