From 28394153aba1e1ec0410406392e26e1e7e2e681e Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Tue, 12 Feb 2019 22:00:31 +0100 Subject: 32 bit fixes (#10608) --- tests/stdlib/tosproc.nim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/stdlib/tosproc.nim') diff --git a/tests/stdlib/tosproc.nim b/tests/stdlib/tosproc.nim index b8d3be9bb..363de9096 100644 --- a/tests/stdlib/tosproc.nim +++ b/tests/stdlib/tosproc.nim @@ -48,10 +48,10 @@ when defined(case_testfile): # compiled test file for child process else: import os, osproc, strutils, posix + const nim = getCurrentCompilerExe() block execShellCmdTest: ## first, compile child program - const nim = getCurrentCompilerExe() const sourcePath = currentSourcePath() let output = buildDir / "D20190111T024543".addFileExt(ExeExt) let cmd = "$# c -o:$# -d:release -d:case_testfile $#" % [nim, output, @@ -71,14 +71,10 @@ else: runTest("exitnow_139", 139) runTest("c_exit2_139", 139) runTest("quit_139", 139) - runTest("exit_array", 1) - when defined(posix): # on windows, -1073741571 - runTest("exit_recursion", SIGSEGV.int + 128) # bug #10273: was returning 0 - assertEquals exitStatusLikeShell(SIGSEGV), SIGSEGV + 128.cint block execProcessTest: let dir = parentDir(currentSourcePath()) - let (outp, err) = execCmdEx("nim c " & quoteShell(dir / "osproctest.nim")) + let (outp, err) = execCmdEx(nim & " c " & quoteShell(dir / "osproctest.nim")) doAssert err == 0 let exePath = dir / addFileExt("osproctest", ExeExt) let outStr1 = execProcess(exePath, workingDir = dir, args = ["foo", -- cgit 1.4.1-2-gfad0