nitunit: set more environment variables NIT_TESTING_ID and SRAND
[nit.git] / 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