1import os 2 3fn test_syscallwrappers() { 4 if true { return } 5 $if linux { 6 $if x64 { 7 exe := os.executable() 8 vdir := os.dir(exe) 9 if vdir.len > 1 { 10 dot_checks := vdir + "/.checks" 11 assert os.is_dir(dot_checks) 12 13 os.chdir(dot_checks) 14 checks_v := "checks.v" 15 assert os.exists(checks_v) 16 rc := os.exec("v run $checks_v") or { panic(err) } 17 assert !rc.output.contains("V panic: An assertion failed.") 18 assert !rc.output.contains("failed") 19 assert rc.exit_code == 0 20 } else { 21 panic("Can't find test directory") 22 } 23 } 24 } 25} 26