Commit 0697cc82 authored by rrt's avatar rrt
Browse files

[project @ 2001-09-17 17:40:55 by rrt]

Make call of tool (i.e. the compiler) work when it has spaces in its paths.
parent 506b6d1f
......@@ -82,7 +82,7 @@ def simple_build_prog_WRK ( $_main, $_extra_args )
rm_or_fail($errname)
rm_or_fail($exename)
rm_nofail(testdirify("*.o"))
$cmd = $tool ++ " " ++ $flags ++ " " ++ $_extra_args ++ " "
$cmd = "\"" ++ $tool ++ "\" " ++ $flags ++ " " ++ $_extra_args ++ " "
++ (if defined $extra_hc_flags
then $extra_hc_flags
else "")
......
......@@ -61,8 +61,8 @@ def simple_build_Main_WRK ( $_extra_args, $compile_only )
rm_or_fail($errname)
rm_or_fail($testname)
$cmd = "cd " ++ $testdir ++ " && " ++
$tool ++ " " ++ $flags ++ " " ++ $_extra_args ++ " "
$cmd = "cd " ++ $testdir ++ " && \"" ++
$tool ++ "\" " ++ $flags ++ " " ++ $_extra_args ++ " "
++ (if defined $extra_hc_flags
then $extra_hc_flags
else "")
......@@ -162,7 +162,7 @@ def vanilla-compfail-test-actions ( $extra_compile_args )
fi
$res = simple_build_Main_WRK ( $extra_compile_args, True )
print "---> " ++ $res
$actual_stderr = qualify("comp.stderr")
$stderr_a = normalise_errmsg(contents($actual_stderr))
$stderr_e = normalise_errmsg(contents($expected_stderr))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment