Delyan Angelov
f427a5241a
os,tools: add os.vtmp_dir()
...
Use it to consistently place all temporary files created by tests in a overridable folder specific to the user, that is easy to cleanup later.
NOTE: os.temp_dir() on macos returns `/tmp`, and using `/tmp/v` is a problem when multiple unix users are trying to access/create/write to it.
2022-11-03 10:19:51 +02:00
yuyi
f6844e9766
all: change optional to result of io ( #16075 )
2022-10-16 09:28:57 +03:00
yuyi
c3548c9413
tests: omit testsuite_begin/end() optional ( #15871 )
2022-09-25 10:29:25 +03:00
Delyan Angelov
f922ed0941
tests: unify all temporary files/folders under $VTMP/v
, that can be cleaned by v wipe-cache
( #15774 )
2022-09-16 04:56:19 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! ( #14366 )
2022-05-13 06:56:21 +03:00
Delyan Angelov
5277ce7dce
tests: support for marking _test.v files with // vtest flaky: true
, to reduce false positives from the CI
2022-04-30 13:30:02 +03:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself
2022-01-22 21:13:28 +02:00
Delyan Angelov
bfb8116623
ci: let process_test.v repeatedly fail 3 times, before consider it failed
2021-10-03 20:26:38 +03:00
Delyan Angelov
4728d102d9
os: add Process.finalise() and Process.free() methods to cleanup pipe descriptors
2021-05-09 21:50:47 +03:00
Lukas Neubert
1d5ed89138
fmt: remove trailing space in comments ( #9620 )
2021-04-07 15:25:11 +02:00
Delyan Angelov
b041681c00
tests: bump limits to reduce flakyness on m1 with latest clang
2021-04-05 22:38:55 +03:00
Delyan Angelov
c698fa1a58
all: support v -watch run
( #9577 )
2021-04-04 16:05:06 +02:00
Lukas Neubert
fdcfe397d4
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc ( #9136 )
2021-03-06 21:04:51 +02:00
Alexander Medvednikov
3a2d696fac
time: time.wait() => time.sleep()
2021-02-27 20:41:06 +03:00
Delyan Angelov
fba28d2dcc
ci: increase the timeout for test_os_process (false positives on macos)
2021-02-22 17:24:52 +02:00
Delyan Angelov
5d653a37b6
os: make process_test.v more portable (prepare for windows)
2021-02-22 09:42:00 +02:00
zakuro
ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) ( #8853 )
2021-02-21 17:05:03 +02:00
Delyan Angelov
018bd6aac3
os: fix flaky test in process_test.v
2020-11-21 18:01:21 +02:00
Delyan Angelov
d633261a99
os: add Process ( #6786 )
2020-11-16 17:32:50 +01:00