You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-07 00:35:37 +02:00
Add ASSERT_DEBUG() macro for debugging.
Replace all current assert() calls except in tests that can't use the debug code.
This commit is contained in:
@ -10,6 +10,8 @@ Log Test Harness
|
||||
#include "common/type.h"
|
||||
#include "storage/helper.h"
|
||||
|
||||
#ifndef NO_LOG
|
||||
|
||||
/***********************************************************************************************************************************
|
||||
Name of file where logs are stored for testing
|
||||
***********************************************************************************************************************************/
|
||||
@ -81,3 +83,5 @@ testLogFinal()
|
||||
if (!strEqZ(actual, ""))
|
||||
THROW(AssertError, "\n\nexpected error log to be empty but actual error log was:\n\n%s\n\n", strPtr(actual));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user