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/osproc | |
parent | bbeadf184e613d6ae476fe4252d60b1e3a92e7dd (diff) | |
download | Nim-c39e2029762387d05f7b3d81490c6129703c1b60.tar.gz |
Introduce first class support for Android (#5772)
Diffstat (limited to 'tests/osproc')
-rw-r--r-- | tests/osproc/tworkingdir.nim | 6 |
1 files changed, 5 insertions, 1 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() |