From 01112e8ca8516495ccadf456dfab9aef5a9c4370 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 3 Jul 2015 13:47:49 -0400 Subject: [PATCH] Test: Fixed assumption in test - Test assumed that if /foo/ appears in the output, all is well, but there is a false positive case where 'foo' is also in the path name of unrelated output. --- test/bug.before.t | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/bug.before.t b/test/bug.before.t index 735d8cc9b..23a90eb7e 100755 --- a/test/bug.before.t +++ b/test/bug.before.t @@ -68,22 +68,22 @@ like ($output, qr/Start\s+12\/22\/2008/, "$ut: task 1 start date as expected"); $output = qx{../src/task rc:$rc 2 info 2>&1}; like ($output, qr/Start\s+4\/17\/2009/, "$ut: task 2 start date as expected"); -$output = qx{../src/task rc:$rc ls start.before:12/1/2008 2>&1}; +$output = qx{../src/task rc:$rc ls start.before:12/1/2008 2>/dev/null}; unlike ($output, qr/foo/, "$ut: no foo before 12/1/2008"); unlike ($output, qr/bar/, "$ut: no bar before 12/1/2008"); -$output = qx{../src/task rc:$rc ls start.before:1/1/2009 2>&1}; +$output = qx{../src/task rc:$rc ls start.before:1/1/2009 2>/dev/null}; like ($output, qr/foo/, "$ut: foo before 1/1/2009"); unlike ($output, qr/bar/, "$ut: no bar before 1/1/2009"); -$output = qx{../src/task rc:$rc ls start.before:5/1/2009 2>&1}; +$output = qx{../src/task rc:$rc ls start.before:5/1/2009 2>/dev/null}; like ($output, qr/foo/, "$ut: foo before 5/1/2009"); like ($output, qr/bar/, "$ut: bar before 5/1/2009"); -$output = qx{../src/task rc:$rc ls start.after:12/1/2008 2>&1}; +$output = qx{../src/task rc:$rc ls start.after:12/1/2008 2>/dev/null}; like ($output, qr/foo/, "$ut: foo after 12/1/2008"); like ($output, qr/bar/, "$ut: bar after 12/1/2008"); -$output = qx{../src/task rc:$rc ls start.after:1/1/2009 2>&1}; +$output = qx{../src/task rc:$rc ls start.after:1/1/2009 2>/dev/null}; unlike ($output, qr/foo/, "$ut: no foo after 1/1/2009"); like ($output, qr/bar/, "$ut: bar after 1/1/2009"); -$output = qx{../src/task rc:$rc ls start.after:5/1/2009 2>&1}; +$output = qx{../src/task rc:$rc ls start.after:5/1/2009 2>/dev/null}; unlike ($output, qr/foo/, "$ut: no foo after 5/1/2009"); unlike ($output, qr/bar/, "$ut: no bar after 5/1/2009");