Subject: | Tests use predictable filename in /tmp |
It seems that the test suite uses the file /tmp/sample.db for its test. A non-random temporary file name has some problems:
* this can be constructed as a security problem (see https://en.wikipedia.org/wiki/Symlink_race )
* the test suite fails if run by different users on the same system due to permission problems on /tmp/sample.db:
# Failed test 'writefile'
# at t/Text-AI-CRM114.t line 27.
# got: '7'
# expected: '0'
# Looks like you failed 1 test of 62.
t/Text-AI-CRM114.t ............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/62 subtests
Best is to use File::Temp to create a random temporary file.