From e8a16353ea69d7ab5e31abaeb459adcad4bc7a36 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 7 Sep 2011 17:16:04 -0700 Subject: [PATCH] Remove the no-valgrind test directive now that unwinding is more worky Issue #236 --- src/test/compiletest/header.rs | 13 ++----------- src/test/compiletest/runtest.rs | 7 +++---- src/test/run-fail/linked-failure.rs | 1 - 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/src/test/compiletest/header.rs b/src/test/compiletest/header.rs index 8a03378742b6..1d952a57e99d 100644 --- a/src/test/compiletest/header.rs +++ b/src/test/compiletest/header.rs @@ -16,10 +16,7 @@ type test_props = { compile_flags: option::t, // If present, the name of a file that this test should match when // pretty-printed - pp_exact: option::t, - // FIXME: no-valgrind is a temporary directive until all of run-fail - // is valgrind-clean - no_valgrind: bool + pp_exact: option::t }; // Load any test directives embedded in the file @@ -27,7 +24,6 @@ fn load_props(testfile: &str) -> test_props { let error_patterns = []; let compile_flags = option::none; let pp_exact = option::none; - let no_valgrind = false; for each ln: str in iter_header(testfile) { alt parse_error_pattern(ln) { option::some(ep) { error_patterns += [ep]; } @@ -41,16 +37,11 @@ fn load_props(testfile: &str) -> test_props { if option::is_none(pp_exact) { pp_exact = parse_pp_exact(ln, testfile); } - - if no_valgrind == false { - no_valgrind = parse_name_directive(ln, "no-valgrind"); - } } ret { error_patterns: error_patterns, compile_flags: compile_flags, - pp_exact: pp_exact, - no_valgrind: no_valgrind + pp_exact: pp_exact }; } diff --git a/src/test/compiletest/runtest.rs b/src/test/compiletest/runtest.rs index 373db1a10add..c98f1deba246 100644 --- a/src/test/compiletest/runtest.rs +++ b/src/test/compiletest/runtest.rs @@ -249,10 +249,9 @@ fn make_exe_name(config: &config, testfile: &str) -> str { output_base_name(config, testfile) + os::exec_suffix() } -fn make_run_args(config: &config, props: &test_props, testfile: &str) -> +fn make_run_args(config: &config, _props: &test_props, testfile: &str) -> procargs { - let toolargs = - if !props.no_valgrind { + let toolargs = { // If we've got another tool to run under (valgrind), // then split apart its command let runtool = @@ -261,7 +260,7 @@ fn make_run_args(config: &config, props: &test_props, testfile: &str) -> option::none. { option::none } }; split_maybe_args(runtool) - } else { [] }; + }; let args = toolargs + [make_exe_name(config, testfile)]; ret {prog: args[0], args: vec::slice(args, 1u, vec::len(args))}; diff --git a/src/test/run-fail/linked-failure.rs b/src/test/run-fail/linked-failure.rs index 82884a1d0e3d..24cfff6edb5c 100644 --- a/src/test/run-fail/linked-failure.rs +++ b/src/test/run-fail/linked-failure.rs @@ -2,7 +2,6 @@ // error-pattern:1 == 2 // xfail-test -// no-valgrind use std; import std::task; import std::comm::port;