swaglog.cc: add test case. fixed the ctx of the first message is empty (#23226)

* test case

* add to selfdrive_tests.yaml

* fix ctx_j is empty

* check return value too
This commit is contained in:
Dean Lee
2022-01-14 12:03:07 +08:00
committed by GitHub
parent fd042a5924
commit feae37541f
5 changed files with 95 additions and 5 deletions
+1
View File
@@ -33,3 +33,4 @@ Export('_common', '_gpucommon', '_gpu_libs')
if GetOption('test'):
env.Program('tests/test_util', ['tests/test_util.cc'], LIBS=[_common])
env.Program('tests/test_swaglog', ['tests/test_swaglog.cc'], LIBS=[_common, 'json11', 'zmq', 'pthread'])