1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Close expect log file when unit test completes.

This did not cause any issues, but it is better to explicitly close open files.
This commit is contained in:
David Steele 2021-12-10 15:04:55 -05:00
parent c38e2d3170
commit 19a7ec69de

View File

@ -426,6 +426,9 @@ harnessLogFinal(void)
harnessLogLoad(logFile);
hrnLogReplace();
// Close expect log file
close(logFdFile);
if (strcmp(harnessLogBuffer, "") != 0)
THROW_FMT(AssertError, "\n\nexpected log to be empty but actual log was:\n\n%s\n\n", harnessLogBuffer);