[PATCH] Why we aren't seeing all the test failures harnessed.

[email protected] (Nicholas Clark)
Newsgroups perl.daily-build
Message-ID <[email protected]>
The "extending failures with Harness" is currently failing to show all tests.
It would appear to be because it assumes that they are all in .. (../lib).
This fixes it to also show tests in t/

Nicholas Clark

--- mktest.pl.orig	Mon Sep  3 11:32:57 2001
+++ mktest.pl	Wed Sep 12 14:39:27 2001
@@ -334,7 +334,8 @@
 		my @harness;
 		for (@nok) {
 		    m:^(\w+/[-\w/]+).*: or next;
-		    push @harness, "../$1.t";
+		    # Remeber, we chdir into t, so -f is false for op/*.t etc
+		    push @harness, (-f "$1.t") ? "../$1.t" : "$1.t";
 		    }
 		if (@harness) {
 		    local $ENV{PERL_SKIP_TTY_TEST} = 1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.