[Rt-commit] rt branch, 4.0/use-posix-signal-numbers, created. rt-4.0.4-183-g0b32e12

Alex Vandiver alexmv at bestpractical.com
Fri Jan 13 09:40:57 EST 2012


The branch, 4.0/use-posix-signal-numbers has been created
        at  0b32e12eed82686f129b62ee4b767ebea5eb44a4 (commit)

- Log -----------------------------------------------------------------
commit 0b32e12eed82686f129b62ee4b767ebea5eb44a4
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Jan 13 09:31:18 2012 -0500

    Ask POSIX what the local signal number of USR1 is
    
    This makes the test pass on non-Linux systems like OS X.

diff --git a/t/api/safe-run-child-util.t b/t/api/safe-run-child-util.t
index c4d2a8b..b29e971 100644
--- a/t/api/safe-run-child-util.t
+++ b/t/api/safe-run-child-util.t
@@ -7,6 +7,7 @@ use RT::Test tests => 35;
 use Test::Warn;
 
 use RT::Util qw(safe_run_child);
+use POSIX qw//;
 
 is_handle_ok();
 
@@ -154,7 +155,7 @@ END
         close $fh;
         # Signal that the first file is now all set; we need to do this
         # to avoid a race condition
-        kill 10, getppid(); # USR1
+        kill POSIX::SIGUSR1(), getppid();
 
         sleep 5;
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list