From: Peter Rabbitson Date: Sun, 1 Feb 2009 22:44:39 +0000 (+0000) Subject: Fix the dbicadmin test for good (take 2) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f2e0cb92887ffc9b01cfc2028f1fc8e11b55ab8;p=dbsrgits%2FDBIx-Class-Historic.git Fix the dbicadmin test for good (take 2) --- diff --git a/t/89dbicadmin.t b/t/89dbicadmin.t index 167a1d5..154ddab 100644 --- a/t/89dbicadmin.t +++ b/t/89dbicadmin.t @@ -51,10 +51,14 @@ sub test_dbicadmin { system( _prepare_system_args( qw|--op=insert --set={"name":"Aran"}| ) ); - open(my $fh, "-|", _prepare_system_args( qw|--op=select --attrs={"order_by":"name"}| ) ) or die $!; - my $data = do { local $/; <$fh> }; - close($fh); - ok( ($data=~/Aran.*Trout/s), "$ENV{JSON_ANY_ORDER}: select with attrs" ); + SKIP: { + skip ("MSWin32 doesn't support -| either", 1) if $^O eq 'MSWin32'; + + open(my $fh, "-|", _prepare_system_args( qw|--op=select --attrs={"order_by":"name"}| ) ) or die $!; + my $data = do { local $/; <$fh> }; + close($fh); + ok( ($data=~/Aran.*Trout/s), "$ENV{JSON_ANY_ORDER}: select with attrs" ); + } system( _prepare_system_args( qw|--op=delete --where={"name":"Trout"}| ) ); ok( ($employees->count()==1), "$ENV{JSON_ANY_ORDER}: delete" );