nitunit: accept an absolute path for `--dir`.
[nit.git] / src / testing / testing_doc.nit
index 9f31805..f543a2b 100644 (file)
@@ -136,7 +136,7 @@ class NitUnitExecutor
                var res = sys.system(cmd)
                var res2 = 0
                if res == 0 then
-                       res2 = sys.system("./{file}.bin >>'{file}.out1' 2>&1 </dev/null")
+                       res2 = sys.system("{file.to_program_name}.bin >>'{file}.out1' 2>&1 </dev/null")
                end
 
                var msg