[Rt-commit] [rtir] 01/01: Add debugging information
Alex Vandiver
alexmv at bestpractical.com
Wed Mar 25 19:39:27 EDT 2015
This is an automated email from the git hooks/post-receive script.
alexmv pushed a commit to branch 3.0/source-from-file
in repository rtir.
commit ea72481c44e3f84935d6ecd877afff6e6c7bf282
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Wed Mar 25 19:39:23 2015 -0400
Add debugging information
---
lib/RT/IR/Test.pm.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/RT/IR/Test.pm.in b/lib/RT/IR/Test.pm.in
index e806f63..b743473 100644
--- a/lib/RT/IR/Test.pm.in
+++ b/lib/RT/IR/Test.pm.in
@@ -131,8 +131,11 @@ sub import_snapshot {
Test::More::diag("About to run `". join(' ', $cmd, @args) ."`");
- !system($cmd, @args)
- or die "couldn't run mysql: $!";
+ my $ret = eval { system($cmd, @args) };
+
+ Test::More::diag("Return was @{[defined $ret ? $ret : 'undef']}");
+ Test::More::diag("\$@ was @{[defined $@ ? $@ : 'undef']}");
+ Test::More::diag("\$? was @{[defined $? ? $? : 'undef']}");
RT::Test::__reconnect_rt();
} else {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list