When tests are run concurrently using the -j option there might be a
change of failure and writing to the same directory from both tests.
Use test filenames for generated temp dirs
$ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits私はガラスを食べられます");
var_dump($ret);
-$dir = __DIR__ . "/test-folder";
+$dir = __DIR__ . "/bug61964-mb";
@mkdir($dir);
$magic_file_copy = $dir . "/magic私はガラスを食べられます.copy";
Notice: finfo_open(): Warning: offset `b' invalid in %sbug61964-mb.php on line %d
-Warning: finfo_open(): Failed to load magic database at '%stest-folder'. in %sbug61964-mb.php on line %d
+Warning: finfo_open(): Failed to load magic database at '%sbug61964-mb'. in %sbug61964-mb.php on line %d
DONE: testing dir with files
===DONE===
$ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits");
var_dump($ret);
-$dir = __DIR__ . "/test-folder";
+$dir = __DIR__ . "/bug61964";
@mkdir($dir);
$magic_file_copy = $dir . "/magic.copy";
Notice: finfo_open(): Warning: offset `b' invalid in %sbug61964.php on line %d
-Warning: finfo_open(): Failed to load magic database at '%stest-folder'. in %sbug61964.php on line %d
+Warning: finfo_open(): Failed to load magic database at '%sbug61964'. in %sbug61964.php on line %d
DONE: testing dir with files
===DONE===