Added tests for close and change of logfile.
authorRobert Foley <robert.foley@linaro.org>
Mon, 18 Nov 2019 21:15:28 +0000 (16:15 -0500)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 18 Dec 2019 20:18:02 +0000 (20:18 +0000)
commitfb47fc69246591a75555f9b15e87213a7f66bc5e
tree50e911eb84ee46d4f195a891795994304c6db317
parent7606488c0efa8f631d31ab9ff8d33b7cf3e2a4c9
Added tests for close and change of logfile.

One test ensures that the logfile handle is still valid even if
the logfile is changed during logging.
The other test validates that the logfile handle remains valid under
the logfile lock even if the logfile is closed.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20191118211528.3221-7-robert.foley@linaro.org>
tests/test-logging.c