develooper Front page | perl.perl5.porters | Postings from August 2013

Faulty test? dist/Cwd/t/Spec-taint.t

Thread Next
Brian Fraser
August 9, 2013 18:11
Faulty test? dist/Cwd/t/Spec-taint.t
Message ID:
Howdy all.

The second test in dist/Cwd/t/Spec-taint.t checks that the return value for
File::Spec->tmpdir is not tainted. However, the File::Spec docs say this:

"Returns the current directory if no writable temporary directories are

Admittedly that's pretty unusual, but for instance, android doesn't have a
canonical tempdir*, which causes ->tmpdir to return cwd, and the test to
fail. Unfortunately, skipping is not quite as simple as just checking for
-e /tmp, so I'm not sure how to go forward.
Maybe we should just skip it on android, but it doesn't solve the
underlaying issue?

[*] There's several non-world-writeable tempdirs, plus each application
launched by the jvm gets a new private one, and that includes native
applications, but just dropping the perl binary into an android device and
running it means that ->tmpdir will return "."

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About