mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
testing: add temporary file hash to prevent accidental collisions with test file binaries (#19710)
This commit is contained in:
parent
1c4c5050de
commit
a2dabddc70
3 changed files with 10 additions and 15 deletions
|
@ -11,8 +11,6 @@ const (
|
|||
expect_tests_path = os.join_path(@VMODROOT, 'cmd', 'tools', 'vcreate', 'tests')
|
||||
// Running tests appends a tsession path to VTMP, which is automatically cleaned up after the test.
|
||||
// The following will result in e.g. `$VTMP/tsession_7fe8e93bd740_1612958707536/test_vcreate_input/`.
|
||||
// Note: The following uses `test_vcreate_input` deliberately and NOT `vcreate_input_test`.
|
||||
// This avoids clashes with the `_test` postfix, which V also uses for test file binaries.
|
||||
test_module_path = os.join_path(os.vtmp_dir(), 'test_vcreate_input')
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue