diff options
author | Emery Hemingway <githubjunk@spam.works> | 2017-10-25 06:50:55 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-10-25 13:50:55 +0200 |
commit | 2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9 (patch) | |
tree | 020c03799845bd0743d8d8b2e2338de188298de4 /lib | |
parent | e40bf9036faf881c51e1dbfe216fa44e68f80fc0 (diff) | |
download | Nim-2ca7b703fbc61b2e5399bdc1eb577a8948ae1cb9.tar.gz |
No implicit quit for Genode (#6515)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/unittest.nim | 2 | ||||
-rw-r--r-- | lib/system.nim | 3 |
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 |