summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorEmery Hemingway <githubjunk@spam.works>2017-10-25 06:50:55 -0500
committerAndreas Rumpf <rumpf_a@web.de>2017-10-25 13:50:55 +0200
commit2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9 (patch)
tree020c03799845bd0743d8d8b2e2338de188298de4 /lib
parente40bf9036faf881c51e1dbfe216fa44e68f80fc0 (diff)
downloadNim-2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9.tar.gz
No implicit quit for Genode (#6515)
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/unittest.nim2
-rw-r--r--lib/system.nim3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim
index 3772a213a..7a8d1dad0 100644
--- a/lib/pure/unittest.nim
+++ b/lib/pure/unittest.nim
@@ -312,7 +312,7 @@ proc ensureInitialized() =
 
   if not testsToRun.isValid:
     testsToRun.init()
-    when declared(os):
+    when declared(paramCount):
       # Read tests to run from the command line.
       for i in 1 .. paramCount():
         testsToRun.incl(paramStr(i))
diff --git a/lib/system.nim b/lib/system.nim
index d85f272f2..ddc72ffaf 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1436,7 +1436,8 @@ when defined(nimdoc):
     ## <#GC_fullCollect>`_.
     ##
     ## The proc ``quit(QuitSuccess)`` is called implicitly when your nim
-    ## program finishes without incident. A raised unhandled exception is
+    ## program finishes without incident for platforms where this is the
+    ## expected behavior. A raised unhandled exception is
     ## equivalent to calling ``quit(QuitFailure)``.
     ##
     ## Note that this is a *runtime* call and using ``quit`` inside a macro won't