mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Fix os/execute regression.
This commit is contained in:
		| @@ -395,7 +395,7 @@ typedef struct { | ||||
| static JanetEVGenericMessage janet_proc_wait_subr(JanetEVGenericMessage args) { | ||||
|     JanetProc *proc = (JanetProc *) args.argp; | ||||
|     WaitForSingleObject(proc->pHandle, INFINITE); | ||||
|     GetExitCodeProcess(proc->pHandle, &args.argi); | ||||
|     GetExitCodeProcess(proc->pHandle, &args.tag); | ||||
|     return args; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -50,5 +50,9 @@ | ||||
|  | ||||
| (assert (= (hash 0) (hash (* -1 0))) "hash -0 same as hash 0") | ||||
|  | ||||
| # os/execute regressions | ||||
| (for i 0 10 | ||||
|   (assert (= i (os/execute [(dyn :executable) "-e" (string/format "(os/exit %d)" i)] :p)) (string "os/execute " i))) | ||||
|  | ||||
| (end-suite) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bakpakin
					bakpakin