nitunit: set more environment variables NIT_TESTING_ID and SRAND
authorJean Privat <jean@pryen.org>
Wed, 25 May 2016 19:34:04 +0000 (15:34 -0400)
committerJean Privat <jean@pryen.org>
Wed, 25 May 2016 19:34:04 +0000 (15:34 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/nitunit.nit

index 0d89dc6..878d3f2 100644 (file)
@@ -64,6 +64,8 @@ if toolcontext.opt_gen_unit.value then
 end
 
 "NIT_TESTING".setenv("true")
+"NIT_TESTING_ID".setenv(pid.to_s)
+"SRAND".setenv("0")
 
 var test_dir = toolcontext.test_dir
 test_dir.mkdir