diff options
author | Fredrik Høisæther Rasch <fredrik.rasch@gmail.com> | 2017-08-06 02:18:15 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-06 02:18:15 +0200 |
commit | c39e2029762387d05f7b3d81490c6129703c1b60 (patch) | |
tree | 68b9b76672de12c670808f882a014f77d7c40eb9 /tests | |
parent | bbeadf184e613d6ae476fe4252d60b1e3a92e7dd (diff) | |
download | Nim-c39e2029762387d05f7b3d81490c6129703c1b60.tar.gz |
Introduce first class support for Android (#5772)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/osproc/tworkingdir.nim | 6 | ||||
-rw-r--r-- | tests/testament/categories.nim | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/osproc/tworkingdir.nim b/tests/osproc/tworkingdir.nim index 84ba3375c..eeed9240d 100644 --- a/tests/osproc/tworkingdir.nim +++ b/tests/osproc/tworkingdir.nim @@ -9,7 +9,11 @@ when defined(windows): discard else: let dir1 = getCurrentDir() - var process = startProcess("/usr/bin/env", "/usr/bin", ["true"]) + var process: Process + when defined(android): + process = startProcess("/system/bin/env", "/system/bin", ["true"]) + else: + process = startProcess("/usr/bin/env", "/usr/bin", ["true"]) let dir2 = getCurrentDir() discard process.waitForExit() process.close() diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim index 4ba07cd21..7b1dd0df0 100644 --- a/tests/testament/categories.nim +++ b/tests/testament/categories.nim @@ -139,7 +139,7 @@ proc gcTests(r: var TResults, cat: Category, options: string) = " -d:release --gc:markAndSweep", cat, actionRun) template test(filename: untyped) = testWithoutBoehm filename - when not defined(windows): + when not defined(windows) and not defined(android): # AR: cannot find any boehm.dll on the net, right now, so disabled # for windows: testSpec r, makeTest("tests/gc" / filename, options & |