diff options
-rw-r--r-- | t/lib.t | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -13,9 +13,11 @@ BEGIN { deliver => "t/delivert $tmpdir", domains => ['spamcat.example.com', 'spamcat2.example.com']); - system "rm -rf $tmpdir"; + system("rm -rf $tmpdir") == 0 + or die "Couldn't remove ‘$tmpdir’: $!\n"; mkdir $tmpdir; - system "/usr/local/bin/sqlite3 $conf{dbpath} < config/create-tables.sql"; + system("/usr/local/bin/sqlite3 $conf{dbpath} < config/create-tables.sql") == 0 + or die "Couldn't create ‘$conf{dbpath}’: $!\n"; } END { |