1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: unify all temporary files/folders under $VTMP/v, that can be cleaned by v wipe-cache (#15774)

This commit is contained in:
Delyan Angelov
2022-09-16 04:56:19 +03:00
committed by GitHub
parent 7e69619add
commit f922ed0941
28 changed files with 210 additions and 144 deletions

View File

@@ -1,7 +1,17 @@
import os
import net.unix
const test_port = os.join_path(os.temp_dir(), 'unix_domain_socket')
const tfolder = os.join_path(os.temp_dir(), 'v', 'unix_test')
const test_port = os.join_path(tfolder, 'unix_domain_socket')
fn testsuite_begin() {
os.mkdir_all(tfolder) or {}
}
fn testsuite_end() {
os.rmdir_all(tfolder) or {}
}
fn handle_conn(mut c unix.StreamConn) {
for {