diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/arm-pass.txt | 18 | ||||
-rw-r--r-- | test/golden-arm.out | 24 | ||||
-rw-r--r-- | test/zerodivide.go | 12 |
3 files changed, 21 insertions, 33 deletions
diff --git a/test/arm-pass.txt b/test/arm-pass.txt index 476c3bddc..ffc4ee2ab 100644 --- a/test/arm-pass.txt +++ b/test/arm-pass.txt @@ -1,5 +1,5 @@ ./235.go -# ./64bit.go # flaky +# ./64bit.go # fail, flaky ./args.go ./assign.go ./assign1.go @@ -65,7 +65,7 @@ ./indirect.go ./indirect1.go ./initcomma.go -# ./initialize.go # fail, BUG +./initialize.go ./initializerr.go ./initsyscall.go ./int_lit.go @@ -116,7 +116,7 @@ ./varerr.go ./varinit.go ./vectors.go -./zerodivide.go +# ./zerodivide.go # fail, BUG ken/array.go ken/chan.go ken/chan1.go @@ -179,7 +179,7 @@ interface/embed0.go interface/embed1.go interface/explicit.go interface/fail.go -# interface/fake.go # fail +interface/fake.go interface/pointer.go interface/receiver.go interface/receiver1.go @@ -408,7 +408,7 @@ fixedbugs/bug217.go fixedbugs/bug218.go fixedbugs/bug219.go fixedbugs/bug220.go -# fixedbugs/bug221.go # fail +fixedbugs/bug221.go fixedbugs/bug222.go fixedbugs/bug223.go fixedbugs/bug224.go @@ -423,14 +423,14 @@ fixedbugs/bug232.go fixedbugs/bug233.go fixedbugs/bug234.go fixedbugs/bug235.go -# fixedbugs/bug236.go # fail +fixedbugs/bug236.go fixedbugs/bug237.go fixedbugs/bug238.go fixedbugs/bug239.go fixedbugs/bug240.go fixedbugs/bug241.go fixedbugs/bug242.go -# fixedbugs/bug243.go # fail +fixedbugs/bug243.go fixedbugs/bug244.go fixedbugs/bug245.go fixedbugs/bug246.go @@ -458,7 +458,7 @@ fixedbugs/bug268.go fixedbugs/bug269.go fixedbugs/bug270.go fixedbugs/bug271.go -# fixedbugs/bug272.go # fail +fixedbugs/bug272.go fixedbugs/bug273.go fixedbugs/bug274.go fixedbugs/bug275.go @@ -467,7 +467,7 @@ fixedbugs/bug277.go fixedbugs/bug278.go fixedbugs/bug279.go fixedbugs/bug280.go -# fixedbugs/bug281.go # fail, BUG +fixedbugs/bug281.go fixedbugs/bug282.go fixedbugs/bug283.go fixedbugs/bug284.go diff --git a/test/golden-arm.out b/test/golden-arm.out index 83f199e94..41829fb03 100644 --- a/test/golden-arm.out +++ b/test/golden-arm.out @@ -51,30 +51,6 @@ FAIL =========== ./turing.go Hello World! -=========== ./zerodivide.go -int 0/0: expected "divide"; got no error -int8 0/0: expected "divide"; got no error -int16 0/0: expected "divide"; got no error -int32 0/0: expected "divide"; got no error -int64 0/0: expected "divide"; got no error -int 1/0: expected "divide"; got no error -int8 1/0: expected "divide"; got no error -int16 1/0: expected "divide"; got no error -int32 1/0: expected "divide"; got no error -int64 1/0: expected "divide"; got no error -uint 0/0: expected "divide"; got no error -uint8 0/0: expected "divide"; got no error -uint16 0/0: expected "divide"; got no error -uint32 0/0: expected "divide"; got no error -uint64 0/0: expected "divide"; got no error -uintptr 0/0: expected "divide"; got no error -uint 1/0: expected "divide"; got no error -uint8 1/0: expected "divide"; got no error -uint16 1/0: expected "divide"; got no error -uint32 1/0: expected "divide"; got no error -uint64 1/0: expected "divide"; got no error -uintptr 1/0: expected "divide"; got no error - =========== ken/intervar.go print 1 bio 2 file 3 -- abc diff --git a/test/zerodivide.go b/test/zerodivide.go index e0407df7c..e016d0dfe 100644 --- a/test/zerodivide.go +++ b/test/zerodivide.go @@ -147,10 +147,22 @@ func main() { case t.err == "" && err == "": // fine case t.err != "" && err == "": + if !bad { + bad = true + fmt.Printf("BUG\n") + } fmt.Printf("%s: expected %q; got no error\n", t.name, t.err) case t.err == "" && err != "": + if !bad { + bad = true + fmt.Printf("BUG\n") + } fmt.Printf("%s: expected no error; got %q\n", t.name, err) case t.err != "" && err != "": + if !bad { + bad = true + fmt.Printf("BUG\n") + } if strings.Index(err, t.err) < 0 { fmt.Printf("%s: expected %q; got %q\n", t.name, t.err, err) continue |