mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-03-03 14:52:21 +02:00
Improved exception handling in file unit tests.
This commit is contained in:
parent
4df3eabf6d
commit
d101e9c84e
@ -189,6 +189,14 @@
|
||||
</release-item>
|
||||
</release-refactor-list>
|
||||
</release-doc-list>
|
||||
|
||||
<release-test-list>
|
||||
<release-refactor-list>
|
||||
<release-item>
|
||||
<p>Improved exception handling in file unit tests.</p>
|
||||
</release-item>
|
||||
</release-refactor-list>
|
||||
</release-test-list>
|
||||
</release>
|
||||
|
||||
<release date="2016-11-17" version="1.11" title="Bug Fix for Asynchronous Archiving Efficiency">
|
||||
|
@ -196,7 +196,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess "error raised: " . $EVAL_ERROR . "\n";
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
if ($bErrorExpected)
|
||||
@ -312,7 +312,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess 'error raised: ' . $EVAL_ERROR . "\n";
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
if (!$bSourceExists || (!$bDestinationExists && !$bCreate) || $bSourceError || $bDestinationError)
|
||||
@ -392,7 +392,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess 'error raised: ' . $EVAL_ERROR . "\n";
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
if (!$bExists || $bError)
|
||||
@ -582,7 +582,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess 'error raised: ' . $EVAL_ERROR . "\n";
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
# Check for an expected error
|
||||
@ -731,7 +731,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess 'error raised: ' . $EVAL_ERROR . "\n";
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
if ($bErrorExpected)
|
||||
@ -841,7 +841,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess 'unexpected error raised: ' . $EVAL_ERROR;
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
if ($bError || $bRemote)
|
||||
@ -944,7 +944,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess 'unexpected error raised: ' . $EVAL_ERROR;
|
||||
confess $EVAL_ERROR;
|
||||
};
|
||||
|
||||
if ($bErrorExpected)
|
||||
@ -1217,7 +1217,7 @@ sub fileTestRun
|
||||
next;
|
||||
}
|
||||
|
||||
confess $oException->message() . (defined($oException->trace()) ? "\n" . $oException->trace() : '');
|
||||
confess $oException;
|
||||
}
|
||||
|
||||
confess $oException;
|
||||
|
Loading…
x
Reference in New Issue
Block a user