llvm-project/lldb/test/API/tools/lldb-server
Pavel Labath 0c208d1f42 [lldb] Fix flakyness in TestGdbRemote_vContThreads
The cause is the non-async-signal-safety printf function (et al.). If
the test managed to interrupt the process and inject a signal before the
printf("@started") call returned (but after it has actually written the
output), that string could end up being printed twice (presumably,
because the function did not manage the clear the userspace buffer, and
so the print call in the signal handler would print it once again).

This patch fixes the issue by replacing the printf call in the signal
handler with a sprintf+write combo, which should not suffer from that
problem (though I wouldn't go as far as to call it async signal safe).
2021-03-18 20:41:55 +01:00
..
commandline [lldb] Remote leftover _llgs from TestGdbRemoteConnection.py 2021-03-02 10:59:25 +01:00
inferior-crash [lldb] Deduplicate more lldb-server tests 2021-01-02 18:32:25 +01:00
libraries-svr4 [lldb] Simplify some lldb-server tests 2021-01-06 15:39:51 +01:00
memory-allocation [lldb] Simplify some lldb-server tests 2021-01-06 15:39:51 +01:00
register-reading Skip 'g' packet tests when running on darwin; debugserver doesn't impl 2021-01-15 13:57:59 -08:00
registers-target-xml-reading [lldb] Convert assertTrue(a == b) to assertEqual(a, b) 2021-02-02 12:39:03 -08:00
signal-filtering [lldb] Deduplicate some lldb-server tests 2020-12-28 20:16:08 +01:00
test
thread-name [lldb] Simplify some lldb-server tests 2021-01-06 15:39:51 +01:00
.clang-format
Makefile
TestAppleSimulatorOSType.py [lldb] Rollback to using i386 for the watch simulator 2021-02-03 16:32:55 -08:00
TestGdbRemoteAttach.py [lldb] Deduplicate some lldb-server tests 2020-12-28 20:16:08 +01:00
TestGdbRemoteAttachOrWait.py Implement vAttachOrWait 2021-01-24 21:30:09 +01:00
TestGdbRemoteAttachWait.py Implement vAttachWait in lldb-server 2021-01-14 09:25:15 +01:00
TestGdbRemoteAuxvSupport.py [lldb] Use assertIn/NotIn over assertTrue/False (NFC) 2021-02-06 11:52:01 -08:00
TestGdbRemoteCompletion.py [lldb] Deduplicate some lldb-server tests 2020-12-28 20:16:08 +01:00
TestGdbRemoteExitCode.py [lldb/test] Automatically skip remote lldb-server tests when applicable 2020-12-27 13:58:10 +01:00
TestGdbRemoteExpeditedRegisters.py [lldb] Use assertIn/NotIn over assertTrue/False (NFC) 2021-02-06 11:52:01 -08:00
TestGdbRemoteHostInfo.py [lldb] Use assertIn/NotIn over assertTrue/False (NFC) 2021-02-06 11:52:01 -08:00
TestGdbRemoteKill.py [lldb/test] Automatically skip remote lldb-server tests when applicable 2020-12-27 13:58:10 +01:00
TestGdbRemoteModuleInfo.py [lldb/test] Add GdbRemoteTestCaseFactory to avoid duplication in lldb-server tests 2020-12-22 10:07:47 +01:00
TestGdbRemoteProcessInfo.py [lldb/test] Automatically skip remote lldb-server tests when applicable 2020-12-27 13:58:10 +01:00
TestGdbRemoteRegisterState.py [lldb/test] Automatically skip remote lldb-server tests when applicable 2020-12-27 13:58:10 +01:00
TestGdbRemoteSingleStep.py [lldb/test] Automatically skip remote lldb-server tests when applicable 2020-12-27 13:58:10 +01:00
TestGdbRemoteThreadsInStopReply.py [lldb/test] Automatically skip remote lldb-server tests when applicable 2020-12-27 13:58:10 +01:00
TestGdbRemote_qThreadStopInfo.py [lldb] Deduplicate some lldb-server tests 2020-12-28 20:16:08 +01:00
TestGdbRemote_vCont.py [lldb] Use assertIn/NotIn over assertTrue/False (NFC) 2021-02-06 11:52:01 -08:00
TestGdbRemote_vContThreads.py [lldb] [test] Skip vCont tests on Windows 2021-03-17 19:22:58 +01:00
TestLldbGdbServer.py [lldb] [test] Skip AVX lldb-server test on non-x86 architectures 2021-03-01 16:23:36 +01:00
categories [lldb] [test] Rename '.categories' to 'categories' 2020-11-10 12:02:38 +01:00
main.cpp [lldb] Fix flakyness in TestGdbRemote_vContThreads 2021-03-18 20:41:55 +01:00