Chef de Cambuse

...cooking, cruising and wine

Archive for October 2007

what to test the tests?

written by Frank, on Oct 16, 2007 8:36:00 PM.

via #python.de:
A contributed test in t/05_links.t creates softlinks to several directories and then deletes them to test that remove() does NOT follow the softlinks.
Unfortunately, one of the places the test links to is File::Spec::rootdir().
As a result, when the test FAILS it will recursively delete the root directory.
This happened with an innocent Perl CPAN module only a few days ago.

Ok, finding joy in another's misfortune isn't the greatest virtue - but anyway, it is funny and something to think about.

Update: And while thinking I recalled a paper I read years ago - Reflections on Trusting Trust by Ken Thompson. Read it!