From 7b3018c660f1d7c1bfb51ebb527aa51419ad19af Mon Sep 17 00:00:00 2001 From: Jonathan Hall Date: Wed, 10 Sep 2014 10:15:43 -0500 Subject: [PATCH] Remove reference to 'No such file or directory', as there's no guarantee this is what $! will return when this code is called during testing. --- t/misc.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/misc.t b/t/misc.t index abcfd1e..cae183e 100644 --- a/t/misc.t +++ b/t/misc.t @@ -10,14 +10,14 @@ ok(my ($smtpd, $conn) = Test::Qpsmtpd->new_conn(), "get new connection"); { my $fault; stderr_like { $fault = $smtpd->fault } - qr/program fault - command not performed \(No such file or directory\)/, + qr/program fault - command not performed \(/, 'fault outputs proper warning to STDOUT'; is($fault->[0], 451, 'fault returns 451'); }; { my $fault; stderr_like { $fault = $smtpd->fault('test message') } - qr/test message \(No such file or directory\)/, + qr/test message \(/, 'fault outputs proper custom warning to STDOUT'; is($fault->[1], 'Internal error - try again later - test message', 'returns the input message');