someone discovered today that hardcoding temporary filenames into tests is a bad idea... ...because the tests might be run simultaneously.
@FioraAeterna Using mkdtemp and chdir into the resulting dir is an easy non-invasive fix for tests that would otherwise be hard to fix.
-
-
@RichFelker@FioraAeterna tmpnam_s()? -
@cr1901@FioraAeterna The point was to avoid needing to make changes at each point of file creation and only make one small isolated change. -
@cr1901@FioraAeterna Also, for practical purposes, tmpnam_s is Windows-only. -
@RichFelker@FioraAeterna Yea, I was hoping you wouldn't point out that I arbitrarily added an _s to the end/didn't actually check :D.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.