Skip to content

Commit e823ac2

Browse files
committed
tests: replace remaining usage of tmp.*os.getuid with tmp.*os.getpid(), to make tests more robust against running concurrently from different shells
1 parent f74606c commit e823ac2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vlib/v/slow_tests/run_project_folders/compile_obj_file_and_link_separately/main.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module main
22

33
import os
44

5-
const tfolder = os.join_path(os.vtmp_dir(), 'vobjfile_${os.getuid()}')
5+
const tfolder = os.join_path(os.vtmp_dir(), 'vobjfile_${os.getpid()}')
66
const vexe = os.quoted_path(@VEXE)
77
const gcc = os.quoted_path(os.find_abs_path_of_executable('gcc') or {
88
println('This program needs `gcc` to be present.')

0 commit comments

Comments
 (0)