mu-logger: Add lock for file-logger and stress test

Add a lock to the file logger and add a unit-test to stress test it.
(It does fail without the lock, and passed with it).

Should help for: #2469.
This commit is contained in:
Dirk-Jan C. Binnema
2023-04-08 10:26:15 +03:00
parent c5c9531c37
commit 2aa0d20f39
3 changed files with 71 additions and 6 deletions

View File

@ -65,4 +65,10 @@ test('test-utils-file',
cpp_args: ['-DBUILD_TESTS'],
dependencies: [glib_dep, config_h_dep, lib_mu_utils_dep]))
test('test-logger',
executable('test-logger', 'mu-logger.cc',
install: false,
cpp_args: ['-DBUILD_TESTS'],
dependencies: [glib_dep, lib_mu_utils_dep]))
subdir('tests')