From 5c7c8a1c0781b9b9c646d05b8257d5f77d7a8466 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Sun, 20 Sep 2009 14:39:36 -0500 Subject: [PATCH] fix FilePump tests on case sensitive file systems --- t/FilePump/Bundle.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/FilePump/Bundle.t b/t/FilePump/Bundle.t index ec01a287e..da960732a 100644 --- a/t/FilePump/Bundle.t +++ b/t/FilePump/Bundle.t @@ -417,8 +417,9 @@ ok(-e $cssFile->stringify && -f _ && -s _, '... minified CSS file built, not e ok(-e $otherFile->stringify && -f _ && -s _, '... other file copied over, not empty'); ok(-e $otherDir->stringify && -d _ , '... other directory copied over'); +my @sortedChildren = sort { lc $a cmp lc $b } map { $_->basename } $otherDir->children; cmp_deeply( - [ map { $_->basename } $otherDir->children ], + \@sortedChildren, [ qw/addendum ShawshankRedemptionMoviePoster.jpg/ ], '... File copied over to new directory' );