Skip Menu |

This queue is for tickets about the Text-AI-CRM114 CPAN distribution.

Report information
The Basics
Id: 120035
Status: new
Priority: 0/
Queue: Text-AI-CRM114

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.05
Fixed in: (no value)



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.