This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The SysV IPC test must use the native integers
[perl5.git] / t / lib / ipc_sysv.t
index 9777292..8485d5d 100755 (executable)
@@ -81,9 +81,9 @@ if ($Config{'d_msgget'} eq 'define' &&
     my $test5bad;
     my $test6bad;
 
     my $test5bad;
     my $test6bad;
 
-    unless (msgsnd($msg,pack("L a*",$msgtype,$msgtext),IPC_NOWAIT)) {
+    unless (msgsnd($msg,pack("L! a*",$msgtype,$msgtext),IPC_NOWAIT)) {
        print "not ";
        print "not ";
-         $test2bad = 1;
+       $test2bad = 1;
     }
     print "ok 2\n";
     if ($test2bad) {
     }
     print "ok 2\n";
     if ($test2bad) {
@@ -127,8 +127,8 @@ EOM
 EOM
     }
 
 EOM
     }
 
-    my($rmsgtype,$rmsgtext) = unpack("L a*",$msgbuf);
-
+    my($rmsgtype,$rmsgtext);
+    ($rmsgtype,$rmsgtext) = unpack("L! a*",$msgbuf)
     unless($rmsgtype == $msgtype && $rmsgtext eq $msgtext) {
        print "not ";
        $test6bad = 1;
     unless($rmsgtype == $msgtype && $rmsgtext eq $msgtext) {
        print "not ";
        $test6bad = 1;