A couple changes from Josef Goettgens.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Tue, 14 Apr 2009 02:35:43 +0000 (02:35 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Tue, 14 Apr 2009 02:35:43 +0000 (02:35 +0000)
git-svn-id: http://svn.complang.org/ragel/trunk@799 052ea7fc-9027-0410-9066-f65837a77df0

test/runtests.in

index d912d55..3f48e0e 100755 (executable)
@@ -119,10 +119,10 @@ function run_test()
                exec_cmd=./$binary
                [ $lang = java ] && exec_cmd="java ${root}"
                [ $lang = ruby ] && exec_cmd="ruby ${code_src}"
-               [ $lang = csharp ] && exec_cmd="mono ${exec_cmd}"
+               [ $lang = csharp ] && [ "$csharp_compiler" = gmcs ] && exec_cmd="mono ${exec_cmd}"
 
                $exec_cmd 2>&1 > $output;
-               if diff $expected_out $output > /dev/null; then
+               if diff --strip-trailing-cr $expected_out $output > /dev/null; then
                        echo "passed";
                else
                        echo "FAILED";