We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a88d0d6 commit 390be00Copy full SHA for 390be00
cmd/tools/test_if_v_test_system_works.v
@@ -4,6 +4,7 @@ module main
4
// and that it exits with code 1, when at least 1 FAIL happen.
5
import os
6
import rand
7
+import time
8
9
const vexe = os.quoted_path(get_vexe_path())
10
const vroot = os.dir(vexe)
@@ -110,6 +111,12 @@ fn main() {
110
111
defer {
112
os.chdir(os.wd_at_startup) or {}
113
}
114
+ unbuffer_stdout()
115
+ spawn fn () {
116
+ time.sleep(30 * time.second)
117
+ eprintln('>>> exiting due to an expired watchdog timer <<<')
118
+ exit(1)
119
+ }()
120
println('> vroot: ${vroot} | vexe: ${vexe} | tdir: ${tdir}')
121
ok_fpath := create_test('a_single_ok_test.v', 'fn test_ok(){ assert true }')!
122
if check_ok('${vexe} ${ok_fpath}') != '' {
0 commit comments