From 8d8581e7f963f4c3493324e5d9d051bb2892c601 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Wed, 28 Mar 2012 12:29:53 -0700 Subject: [PATCH] Update AST fuzzer --- src/fuzzer/fuzzer.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index bbac28ec844..70fe1afa876 100644 --- a/src/fuzzer/fuzzer.rs +++ b/src/fuzzer/fuzzer.rs @@ -366,29 +366,24 @@ fn check_compiling(filename: str) -> happiness { [filename]); //#error("Status: %d", p.status); - if p.err != "" { - if false { - known_bug("...") + if p.status == 0 { + passed + } else if p.err != "" { + if contains(p.err, "error:") { + cleanly_rejected("rejected with span_error") } else { log(error, "Stderr: " + p.err); failed("Unfamiliar error message") } - } else if p.status == 0 { - passed } else if contains(p.out, "Assertion") && contains(p.out, "failed") { log(error, "Stdout: " + p.out); failed("Looks like an llvm assertion failure") - - } else if contains(p.out, "Taking the value of a method does not work yet (issue #435)") { - known_bug("https://github.com/mozilla/rust/issues/435") } else if contains(p.out, "internal compiler error unimplemented") { known_bug("Something unimplemented") } else if contains(p.out, "internal compiler error") { log(error, "Stdout: " + p.out); failed("internal compiler error") - } else if contains(p.out, "error:") { - cleanly_rejected("rejected with span_error") } else { log(error, p.status); log(error, "!Stdout: " + p.out);