Selftests don't remove all tmp files

Started by obetz, July 25, 2019, 01:18:25 PM

Previous topic - Next topic

obetz

Hi Phil,

the selftests ton't remove CanonRaw_5.tmp, ExifTool_17.tmp and Olympus_7.tmp.

Is this by intention?

Oliver

Phil Harvey

Hi Oliver,

Wow, that's odd.  Somehow the "unlink" is failing in the testVerbose function of my t/TestLib.pm on your system.  It works for me.  What system are you using?

- Phil

Edit: I bet Windows.  I can see why this might fail on Windows because I forgot to close the file before unlink-ing it, and Windows limits manipulation of open files..  I'll fix that, thanks.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

obetz

Interesting OS difference.

As you guessed, I found this with my routine tests of the Windows installer and ZIP package.