summary refs log tree commit diff stats
path: root/tests/accept
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-08 01:29:29 +0100
committerAraq <rumpf_a@web.de>2011-11-08 01:29:29 +0100
commit25e813b5d0be2b8ea377913d145b2a2ac891c4cb (patch)
treef8655bd33d919106449da501975ca2ce92753d6c /tests/accept
parent0b4d5e45b9a6a78f1d661d119cd76f41fecaefea (diff)
downloadNim-25e813b5d0be2b8ea377913d145b2a2ac891c4cb.tar.gz
bugfixes for the tester; the tester now supports running of single tests
Diffstat (limited to 'tests/accept')
-rwxr-xr-xtests/accept/run/tassert.nim1
-rwxr-xr-xtests/accept/run/tcontinuexc.nim1
-rwxr-xr-xtests/accept/run/tfloat1.nim1
-rwxr-xr-xtests/accept/run/tfloat2.nim1
-rwxr-xr-xtests/accept/run/toverflw2.nim3
-rwxr-xr-xtests/accept/run/treraise.nim1
-rwxr-xr-xtests/accept/run/tunhandledexc.nim1
-rwxr-xr-xtests/accept/run/twrongexc.nim1
8 files changed, 8 insertions, 2 deletions
diff --git a/tests/accept/run/tassert.nim b/tests/accept/run/tassert.nim
index 50793c3d6..0ea8d2034 100755
--- a/tests/accept/run/tassert.nim
+++ b/tests/accept/run/tassert.nim
@@ -1,6 +1,7 @@
 discard """
   file: "tassert.nim"
   outputsub: "assertion failure!this shall be always written"
+  exitcode: "1"
 """
 # test assert and exception handling
 
diff --git a/tests/accept/run/tcontinuexc.nim b/tests/accept/run/tcontinuexc.nim
index 82cce923e..f618abc14 100755
--- a/tests/accept/run/tcontinuexc.nim
+++ b/tests/accept/run/tcontinuexc.nim
@@ -1,6 +1,7 @@
 discard """
   file: "tcontinuexc.nim"
   outputsub: "ECcaught"
+  exitcode: "1"
 """
 type
   ESomething = object of E_Base
diff --git a/tests/accept/run/tfloat1.nim b/tests/accept/run/tfloat1.nim
index 7d6e0c6a3..f290fdb57 100755
--- a/tests/accept/run/tfloat1.nim
+++ b/tests/accept/run/tfloat1.nim
@@ -1,6 +1,7 @@
 discard """
   file: "tfloat1.nim"
   outputsub: "Error: unhandled exception: FPU operation caused an overflow [EFloatOverflow]"
+  exitcode: "1"
 """
 # Test new floating point exceptions
 
diff --git a/tests/accept/run/tfloat2.nim b/tests/accept/run/tfloat2.nim
index b0df1e8b7..51883674f 100755
--- a/tests/accept/run/tfloat2.nim
+++ b/tests/accept/run/tfloat2.nim
@@ -1,6 +1,7 @@
 discard """
   file: "tfloat2.nim"
   outputsub: "Error: unhandled exception: FPU operation caused a NaN result [EFloatInvalidOp]"
+  exitcode: "1"
 """
 # Test new floating point exceptions
 
diff --git a/tests/accept/run/toverflw2.nim b/tests/accept/run/toverflw2.nim
index 075eae9e9..f7fe3d574 100755
--- a/tests/accept/run/toverflw2.nim
+++ b/tests/accept/run/toverflw2.nim
@@ -1,11 +1,10 @@
 discard """
   file: "toverflw2.nim"
   outputsub: "Error: unhandled exception: over- or underflow [EOverflow]"
+  exitcode: "1"
 """
 var a : int32 = 2147483647
 var b : int32 = 2147483647
 var c = a + b
 
 
-
-
diff --git a/tests/accept/run/treraise.nim b/tests/accept/run/treraise.nim
index 71736b512..cbd0b5f8a 100755
--- a/tests/accept/run/treraise.nim
+++ b/tests/accept/run/treraise.nim
@@ -1,6 +1,7 @@
 discard """
   file: "treraise.nim"
   outputsub: "Error: unhandled exception: bla [ESomeOtherErr]"
+  exitcode: "1"
 """
 type
   ESomething = object of E_Base
diff --git a/tests/accept/run/tunhandledexc.nim b/tests/accept/run/tunhandledexc.nim
index ae62b4ee5..f24881aef 100755
--- a/tests/accept/run/tunhandledexc.nim
+++ b/tests/accept/run/tunhandledexc.nim
@@ -1,6 +1,7 @@
 discard """
   file: "tunhandledexc.nim"
   outputsub: "Error: unhandled exception: bla [ESomeOtherErr]"
+  exitcode: "1"
 """
 type
   ESomething = object of E_Base
diff --git a/tests/accept/run/twrongexc.nim b/tests/accept/run/twrongexc.nim
index 2995360ec..755f7d979 100755
--- a/tests/accept/run/twrongexc.nim
+++ b/tests/accept/run/twrongexc.nim
@@ -1,6 +1,7 @@
 discard """
   file: "twrongexc.nim"
   outputsub: "Error: unhandled exception:  [EInvalidValue]"
+  exitcode: "1"
 """
 try:
   raise newException(EInvalidValue, "")