summary refs log tree commit diff stats
path: root/tests/osproc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/osproc')
-rw-r--r--tests/osproc/tworkingdir.nim6
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()