1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-08 03:22:25 +03:00

Replace THROW_ON_SYS_ERROR() with THROW_SYS_ERROR().

The former macro was hiding missing branch coverage for critical error handling.
This commit is contained in:
David Steele
2018-03-24 14:11:29 -04:00
parent c7a6e9d2f2
commit 9001b9b957
10 changed files with 55 additions and 54 deletions

View File

@@ -205,14 +205,12 @@ testRun()
}
// -----------------------------------------------------------------------------------------------------------------------------
if (testBegin("THROW_ON_SYS_ERROR()"))
if (testBegin("THROW_SYS_ERROR()"))
{
THROW_ON_SYS_ERROR(0, AssertError, "message");
TRY_BEGIN()
{
errno = E2BIG;
THROW_ON_SYS_ERROR(1, AssertError, "message");
THROW_SYS_ERROR(AssertError, "message");
}
CATCH_ANY()
{