Skip to content

Commit

Permalink
added timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanSK committed Mar 26, 2019
1 parent 37b0888 commit f84b512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/compiler/src/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ for c_file in $c_files ; do #use tests_dir here to enforce correctly added tests
printf "======================================\n${no_colour}"
fi

$c_compiler -S $c_file -o $asm_file > /dev/null 2>&1
timeout 5 $c_compiler -S $c_file -o $asm_file > /dev/null 2>&1
mips-linux-gnu-gcc -mfp32 $gcc_flags_enforce_c90 -o $obj_file -c $asm_file
mips-linux-gnu-gcc -mfp32 $gcc_flags_enforce_c90 -static -o $binary_out $obj_file $driver_file
qemu-mips $binary_out
timeout 5 qemu-mips $binary_out
exit_code=$?

((tests+=1))
Expand Down

0 comments on commit f84b512

Please sign in to comment.