LoggerState: test cases (#21855)

* test multiple threads writing to log

* fix typo

* use util::getenv

* check INIT_DATA and SENTINEL

* test END_OF_SEGMENT

* add comment

* test multiple threads logging and rotation

* cleanup

* update

* LoggerHandle:quick fix

* cleanup

* revert test_loggerd.py

* refactor test case

* check lock file

* check refcnt after close

* test_runner.cc

d

* int eixt_signal
This commit is contained in:
Dean Lee
2021-08-31 08:12:09 +08:00
committed by GitHub
parent 6be8520a84
commit 935cbd3139
7 changed files with 198 additions and 9 deletions
+3
View File
@@ -26,3 +26,6 @@ if arch == "Darwin":
env.Program(src, LIBS=libs)
env.Program('bootlog.cc', LIBS=libs)
if GetOption('test'):
env.Program('tests/test_logger', ['tests/test_runner.cc', 'tests/test_logger.cc'], LIBS=[libs])