]> git.pld-linux.org Git - packages/perl.git/blobdiff - perl-test-noproc.patch
- obsolete old versions of provided modules
[packages/perl.git] / perl-test-noproc.patch
index 9f6337f766003f9bc3f4f7416ddfc38ec89722a0..8967e770c59696063ae9dbec0ab53cfbe66f24d1 100644 (file)
@@ -1,21 +1,22 @@
---- perl-5.8.2/ext/threads/t/join.t.orig       Tue Sep 30 19:10:32 2003
-+++ perl-5.8.2/ext/threads/t/join.t    Mon Dec  8 14:49:12 2003
-@@ -93,6 +93,10 @@
+--- perl-5.12.0/dist/threads/t/join.t.orig     Tue Sep 30 19:10:32 2003
++++ perl-5.12.0/dist/threads/t/join.t  Mon Dec  8 14:49:12 2003
+@@ -118,6 +118,10 @@
  
  # We parse ps output so this is OS-dependent.
  if ($^O eq 'linux') {
-+  if (! -d "/proc/$$") {
-+    # proc not mounted? skip.
-+    skip("\$0 check: /proc not mounted?");
-+  } else {
-   # First modify $0 in a subthread.
-   print "# mainthread: \$0 = $0\n";
-   threads->new( sub {
-@@ -123,6 +127,7 @@
-   } else {
-     skip("\$0 check: opening 'ps -f |' failed: $!");
-   }
-+  }
++    if (! -d "/proc/$$") {
++      # proc not mounted? skip.
++      skip("\$0 check: /proc not mounted?");
++    } else {
+     # First modify $0 in a subthread.
+     #print "# mainthread: \$0 = $0\n";
+     threads->create(sub{ #print "# subthread: \$0 = $0\n";
+@@ -148,6 +152,7 @@
+     } else {
+         skip("\$0 check: opening 'ps -f |' failed: $!");
+     }
++    }
  } else {
-   skip("\$0 check: only on Linux");
+     skip("\$0 check: only on Linux");
  }
+
This page took 0.076467 seconds and 4 git commands to generate.