summary refs log tree commit diff stats
path: root/tests/misc/trunner.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-02-02 18:32:33 -0800
committerGitHub <noreply@github.com>2021-02-02 18:32:33 -0800
commit6f1289b80ccf599008368b121d874b4ce4717fc6 (patch)
treebaafecb74e7ed6b264b27f05bafd724a43db8646 /tests/misc/trunner.nim
parentf4449a897ddb094fbc2e1c96eea3d8a8afdcd76a (diff)
downloadNim-6f1289b80ccf599008368b121d874b4ce4717fc6.tar.gz
remove .github/workflows/ci_ssl.yml; instead run via trunner_thirdparty (#16221)
Diffstat (limited to 'tests/misc/trunner.nim')
-rw-r--r--tests/misc/trunner.nim7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/misc/trunner.nim b/tests/misc/trunner.nim
index 63aac0ede..a66177f28 100644
--- a/tests/misc/trunner.nim
+++ b/tests/misc/trunner.nim
@@ -7,7 +7,7 @@ discard """
 ## A few others could be added to here to simplify code.
 ## Note: this test is a bit slow but tests a lot of things; please don't disable.
 
-import std/[strformat,os,osproc,unittest]
+import std/[strformat,os,osproc,unittest,compilesettings]
 from std/sequtils import toSeq,mapIt
 from std/algorithm import sorted
 import stdtest/[specialpaths, unittest_light]
@@ -25,10 +25,7 @@ const
     # useful when you want to turn only some hints on, and some common ones off.
     # pending https://github.com/timotheecour/Nim/issues/453, simplify to: `--hints:off`
   nim = getCurrentCompilerExe()
-  mode =
-    when defined(c): "c"
-    elif defined(cpp): "cpp"
-    else: static: doAssert false
+  mode = querySetting(backend)
   nimcache = buildDir / "nimcacheTrunner"
     # instead of `querySetting(nimcacheDir)`, avoids stomping on other parallel tests