tests: return early in x64_test.v on non AMD64 machines

pull/6130/head
Delyan Angelov 2020-08-20 15:42:26 +03:00
parent 8c7bcad6b1
commit dfc4298125
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ import term
// TODO some logic copy pasted from valgrind_test.v and compiler_test.v, move to a module
fn test_x64() {
$if !amd64 {
return
}
if os.user_os() != 'linux' {
eprintln('x64 tests can only be run on Linux for now.')
exit(0)