Netzflocken

...was so an- und abfällt

what to test the tests?

written by dev, on 2007-10-16 20:36.

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!

Leave a Reply