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:
parent
c38e2d3170
commit
19a7ec69de
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user