summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-10-08 10:58:52 -0700
committerAman Gupta <aman@tmm1.net>2015-10-08 10:58:52 -0700
commita1750bd43189bb36f5e461df139b7b1a5b4c6b5c (patch)
tree1ceef6f889a77e646d3da4a7b5ba4b22dc57e8eb /tests
parent5bb0820596512be5a1314b5ac3f68b9b4a6e62df (diff)
downloadNim-a1750bd43189bb36f5e461df139b7b1a5b4c6b5c.tar.gz
skip sdl/opengl/fsmonitor tests when unavailable
Diffstat (limited to 'tests')
-rw-r--r--tests/testament/tester.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/testament/tester.nim b/tests/testament/tester.nim
index b18e343cd..a5e622010 100644
--- a/tests/testament/tester.nim
+++ b/tests/testament/tester.nim
@@ -105,6 +105,12 @@ proc callCompiler(cmdTemplate, filename, options: string,
   elif suc =~ pegSuccess:
     result.err = reSuccess
 
+  if result.err == reNimcCrash and
+     ("Your platform is not supported" in result.msg or
+      "cannot open 'sdl'" in result.msg or
+      "cannot open 'opengl'" in result.msg):
+    result.err = reIgnored
+
 proc callCCompiler(cmdTemplate, filename, options: string,
                   target: TTarget): TSpec =
   let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],