Subject: | [PATCH] test.pl should wait for daemon to exit |
test.pl exits before its test daemon has finished. This causes any
immediate subsequent action to cleanup the build dir to fail:
rm: cannot remove directory `/var/perl/cpan/build/Proc-PID-File-1.26':
Device or resource busy
The attached patch fixes this.
Subject: | patch.txt |
--- Proc-PID-File-1.26/test.pl.orig 2009-10-03 20:13:10.676083000 -0400
+++ Proc-PID-File-1.26/test.pl 2009-10-03 20:14:01.434852600 -0400
@@ -130,3 +130,7 @@
$c1->release();
ok(! -f $c1->{path}, "oo: released");
+
+# - wait for daemon to exit --------------------------------------------------
+sleep 1 while kill 0, $pid;
+exit 0;