From f922571b226d9a59e677b263d6fda481db5611c4 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 5 Aug 2012 12:41:48 -0700 Subject: [PATCH] Make glob.t more resilient It was not tolerating editor temp files with spaces in their names. It was testing the output of by comparing it with split /\s/, `echo op/*` on non-Windows non-VMS systems (Unix). `ls op/* | cat` produces more machine-friendly output, so use that. --- t/op/glob.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/op/glob.t b/t/op/glob.t index f122fa9..8ad827e 100644 --- a/t/op/glob.t +++ b/t/op/glob.t @@ -20,7 +20,7 @@ elsif ($^O eq 'VMS') { } else { map { $files{$_}++ } ; - map { delete $files{$_} } split /[\s\n]/, `echo op/*`; + map { delete $files{$_} } split /\n/, `ls op/* | cat`; } ok( !(keys(%files)),'leftover op/* files' ) or diag(join(' ',sort keys %files)); -- 2.7.4