summaryrefslogtreecommitdiff
path: root/t/50-icli.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-04-15 10:30:23 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-04-15 10:30:23 +0200
commit43d723eeb32041b612d9d1d2aa9bbdb4a170f4d0 (patch)
treef2c2fa2d2cc6c02d34c8764065fcff5fa0b83104 /t/50-icli.t
parentb387a54a39bfb4fc51b0aec7c0f7acca67b188c6 (diff)
Use croak, fix tests
Diffstat (limited to 't/50-icli.t')
-rw-r--r--t/50-icli.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/50-icli.t b/t/50-icli.t
index 62d7912..2e6f0c7 100644
--- a/t/50-icli.t
+++ b/t/50-icli.t
@@ -170,10 +170,10 @@ $icli = "bin/icli -f t/in/status.dat.weird.2 -c t/in/objects.cache";
$cmd = Test::Command->new(cmd => "$icli -lh -h alpha");
$cmd->exit_isnt_num(0);
-$cmd->stdout_is_eq('alpha ');
-$cmd->stderr_is_eq("Unknown host state: 23\n");
+$cmd->stdout_is_eq($EMPTY);
+$cmd->stderr_like(qr{^Unknown host state: 23}s);
$cmd = Test::Command->new(cmd => "$icli -ls -h aneurysm");
$cmd->exit_isnt_num(0);
$cmd->stdout_is_eq('Disk: / ');
-$cmd->stderr_is_eq("Unknown service state: 23\n");
+$cmd->stderr_like(qr{^Unknown service state: 23}s);