Subject: | Wrong perl used in test |
t/10-sched_yield.t fails on most platforms because the wrong perl (system perl) is used. The following patch fixes the problem:
diff --git a/t/10-sched_yield.t b/t/10-sched_yield.t
index 2ba78a6..bf7ad1f 100644
--- a/t/10-sched_yield.t
+++ b/t/10-sched_yield.t
@@ -22,7 +22,7 @@ if ($^O =~ m/linux/) {
SKIP: {
skip "cannot trace on this platform or trace binary not found ",1 if (!defined $binary);
- $strace = "$binary perl examples/yield.pl 2>&1";
+ $strace = "$binary $^X examples/yield.pl 2>&1";
like (`$strace`,qr/sched_yield/,"strace reports system call executed");
}