]> git.pld-linux.org Git - packages/perl.git/commitdiff
- skip one subtest if /proc not mounted
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 8 Dec 2003 14:35:44 +0000 (14:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-test-noproc.patch -> 1.1

perl-test-noproc.patch [new file with mode: 0644]

diff --git a/perl-test-noproc.patch b/perl-test-noproc.patch
new file mode 100644 (file)
index 0000000..9f6337f
--- /dev/null
@@ -0,0 +1,21 @@
+--- 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 @@
+ # 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: $!");
+   }
++  }
+ } else {
+   skip("\$0 check: only on Linux");
+ }
This page took 0.077601 seconds and 4 git commands to generate.