diff options
| author | yangwei <[email protected]> | 2023-07-24 16:58:30 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-07-24 16:58:30 +0800 |
| commit | 9d9b3f689f33bc13cfdc50c49ef6e6cf9c0dc682 (patch) | |
| tree | 71cab81888ebf7661f7f7b3c24f82451c8dc7f0e /test | |
| parent | c97be84ec7cc4847ace846bb96a8714ad201f2f2 (diff) | |
🐞 fix(sapp_watch_dog): 更新检测到死锁触发退出条件,并增加相关日志
从exit改为abort,保留现场死锁堆栈
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_app_sapp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_app_sapp.c b/test/test_app_sapp.c index 52c0083..13897db 100644 --- a/test/test_app_sapp.c +++ b/test/test_app_sapp.c @@ -1099,7 +1099,12 @@ test_set_stream_timeout(pstream, pme, thread_seq, a_packet); } return APP_STATE_GIVEME; } +char test_deadlock(struct streaminfo *pstream,void **pme, int thread_seq,void *a_packet) +{ + sleep(12); + return APP_STATE_GIVEME; +} /* 关于网络相关字�??, 均为网络�? network order */ struct __test_inline_vxlan_hdr{ |
