Skip to content

Commit 8d8581e

Browse files
committed
Update AST fuzzer
1 parent 232c771 commit 8d8581e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/fuzzer/fuzzer.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,29 +366,24 @@ fn check_compiling(filename: str) -> happiness {
366366
[filename]);
367367

368368
//#error("Status: %d", p.status);
369-
if p.err != "" {
370-
if false {
371-
known_bug("...")
369+
if p.status == 0 {
370+
passed
371+
} else if p.err != "" {
372+
if contains(p.err, "error:") {
373+
cleanly_rejected("rejected with span_error")
372374
} else {
373375
log(error, "Stderr: " + p.err);
374376
failed("Unfamiliar error message")
375377
}
376-
} else if p.status == 0 {
377-
passed
378378
} else if contains(p.out, "Assertion") && contains(p.out, "failed") {
379379
log(error, "Stdout: " + p.out);
380380
failed("Looks like an llvm assertion failure")
381-
382-
} else if contains(p.out, "Taking the value of a method does not work yet (issue #435)") {
383-
known_bug("https://github.com/mozilla/rust/issues/435")
384381
} else if contains(p.out, "internal compiler error unimplemented") {
385382
known_bug("Something unimplemented")
386383
} else if contains(p.out, "internal compiler error") {
387384
log(error, "Stdout: " + p.out);
388385
failed("internal compiler error")
389386

390-
} else if contains(p.out, "error:") {
391-
cleanly_rejected("rejected with span_error")
392387
} else {
393388
log(error, p.status);
394389
log(error, "!Stdout: " + p.out);

0 commit comments

Comments
 (0)