Bug 16568 – unittesting floods /tmp/ with files of the form .dmd-run-test.0V0KUY

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-10-01T16:05:00Z
Last change time
2016-10-01T22:56:58Z
Keywords
pull
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2016-10-01T16:05:01Z
Just took a look at my /tmp/ directory, saw a bunch of these things. They should be under a single subdir /tmp/.dmd-run-test/. It would also be nice to have a VERY SIMPLE mechanism to delete old runs (e.g. a day or more).
Comment #1 by dlang-bugzilla — 2016-10-01T22:20:25Z
Files are created here: https://github.com/dlang/phobos/blob/bf61ad682f3f9c35a16c79180941ffd902ab9758/posix.mak#L360-L366 It seems that the files are not cleaned up only when the test fails. Have you been doing a lot of development and testing? Anyway, here's an untested fix attempt: https://github.com/dlang/phobos/pull/4831
Comment #2 by andrei — 2016-10-01T22:56:58Z
Yes, apparently my development process involves a bunch of erroneous tests :o). Thanks for your patch, worked with make -j std/algorithm.test.