Commit d3c5f6e5 authored by simonmar's avatar simonmar
Browse files

[project @ 2002-07-15 15:23:14 by simonmar]

Put the source file *before* any extra options for this test on the
command line.  That way we can compile extra files that depend on
things created by compiling the original source (eg. _stub files for
multi-file FFI tests).
parent cfe2390a
...@@ -62,17 +62,18 @@ def simple_build_Main_WRK ( $_extra_args, $compile_only ) ...@@ -62,17 +62,18 @@ def simple_build_Main_WRK ( $_extra_args, $compile_only )
rm_or_fail($testname) rm_or_fail($testname)
$cmd = "cd " ++ $testdir ++ " && \"" ++ $cmd = "cd " ++ $testdir ++ " && \"" ++
$tool ++ "\" " ++ $flags ++ " " ++ $_extra_args ++ " " $tool ++ "\" "
++ (if defined $extra_hc_flags
then $extra_hc_flags
else "")
++ (if defined $compile_to_hc && $compile_to_hc ++ (if defined $compile_to_hc && $compile_to_hc
then " -C " then "-C "
else if $compile_only else if $compile_only
then " -c " then "-c "
else " -o " ++ $testname ++ " ") else "-o " ++ $testname ++ " ")
++ $srcname ++ " >" ++ $errname ++ " 2>&1" ++ $srcname ++ " "
-- print $cmd ++ $flags ++ " " ++ $_extra_args ++ " "
++ (if defined $extra_hc_flags
then $extra_hc_flags ++ " "
else "")
++ ">" ++ $errname ++ " 2>&1"
$res = runCmd($cmd) $res = runCmd($cmd)
return $res return $res
} }
...@@ -172,7 +173,7 @@ def vanilla-compfail-test-actions ( $extra_compile_args ) ...@@ -172,7 +173,7 @@ def vanilla-compfail-test-actions ( $extra_compile_args )
return False return False
fi fi
if $res /= "0" && $stderr_e == $stderr_a if ($res /= "0") && $stderr_e == $stderr_a
then then
return True return True
else else
......
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