diff --git a/testmodules/nim.cfg b/testmodules/nim.cfg deleted file mode 100644 index 222cb3d..0000000 --- a/testmodules/nim.cfg +++ /dev/null @@ -1,2 +0,0 @@ ---warningAsError[UnsafeDefault]:"on" ---warningAsError[ProveInit]:"on" diff --git a/testmodules/options/test.nimble b/testmodules/options/test.nimble index d389ae1..1aa991e 100644 --- a/testmodules/options/test.nimble +++ b/testmodules/options/test.nimble @@ -4,4 +4,8 @@ description = "Questionable tests for std/option" license = "MIT" task test, "Runs the test suite": - exec "nim c -f -r test.nim" + var options = "-f -r" + when (NimMajor, NimMinor) >= (1, 4): + options &= " --warningAsError[UnsafeDefault]:on" + options &= " --warningAsError[ProveInit]:on" + exec "nim c " & options & " test.nim"