v2 / vlib / v / fmt / tests / consts_with_or_block_keep.vv
11 lines · 10 sloc · 354 bytes · f09826e928f9612bab9299faefff7cf34a503362
Raw
1import os
2
3const exe = os.find_abs_path_of_executable('my_exe') or {
4 eprintln('skipping test, since `my_exe` is missing')
5 exit(0)
6}
7const exe_quoted = os.quoted_path(os.find_abs_path_of_executable('my_exe') or {
8 eprintln('skipping test, since `my_exe` is missing')
9 exit(0)
10})
11const single_line_test_path = os.join_path(os.vtmp_dir(), 'my_test_path')
12