mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
A lot of zero-sized temporary files are left after a test session on Windows.
This commit is contained in:
parent
0aa75b2e8d
commit
2d778d5a0a
@ -32,6 +32,7 @@ inline string copyFile(const string &filename, const string &ext)
|
||||
#ifdef _WIN32
|
||||
GetTempPathA(sizeof(testFileName), testFileName);
|
||||
GetTempFileNameA(testFileName, "tag", 0, testFileName);
|
||||
DeleteFileA(testFileName);
|
||||
strcat(testFileName, ext.c_str());
|
||||
#else
|
||||
snprintf(testFileName, sizeof(testFileName), "/%s/taglib-test-XXXXXX%s", P_tmpdir, ext.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user