From 0664cb56895bf0b7c1e6002ed2b22244d7c379bd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 26 May 2014 23:44:09 -0400 Subject: [PATCH] Unit Tests - Updated tests to be explicit about plain args being search terms. --- test/feature.exit.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/feature.exit.t b/test/feature.exit.t index 247d343b0..a057d8aba 100755 --- a/test/feature.exit.t +++ b/test/feature.exit.t @@ -43,9 +43,9 @@ if (open my $fh, '>', 'exit.rc') } qx{../src/task rc:exit.rc add foo 2>&1}; -my $exit_good = system ('../src/task rc:exit.rc ls foo >/dev/null 2>&1'); +my $exit_good = system ('../src/task rc:exit.rc ls /foo/ >/dev/null 2>&1'); is ($exit_good, 0, 'task returns 0 on success'); -my $exit_bad = system ('../src/task rc:exit.rc ls bar >/dev/null 2>&1'); +my $exit_bad = system ('../src/task rc:exit.rc ls /bar/ >/dev/null 2>&1'); isnt ($exit_bad, 0, 'task returns non-zero on failure'); # Cleanup.