aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2022-06-15 15:30:23 +0100
committerPedro Alves <pedro@palves.net>2022-07-13 22:29:25 +0100
commit9779607aff84cad92d8800290dce4eb17c17ce12 (patch)
tree803dbb3a88feba30d4d38d3d1043ff7325d361be /gdb/python
parent2b8b0dca3b6b9ad40e0c11754bf2f972bd8de890 (diff)
downloadbinutils-9779607aff84cad92d8800290dce4eb17c17ce12.zip
binutils-9779607aff84cad92d8800290dce4eb17c17ce12.tar.gz
binutils-9779607aff84cad92d8800290dce4eb17c17ce12.tar.bz2
Tighten gdb.threads/no-unwaited-for-left.exp regexps
A WIP version of a patch (https://sourceware.org/pipermail/gdb-patches/2022-June/190202.html) resulted in a bug that went unnoticed by the testuite, like so: (gdb) PASS: gdb.threads/no-unwaited-for-left.exp: enable scheduler-locking, for main thread continue Continuing. [New Thread 1251861.1251861] No unwaited-for children left. (gdb) PASS: gdb.threads/no-unwaited-for-left.exp: continue stops when the main thread exits info threads Id Target Id Frame 3 Thread 1251861.1251863 "no-unwaited-for" __pthread_clockjoin_ex (threadid=140737351558976, thread_return=0x0, clockid=<optimized out>, abstime=<optimized out>, block=<optimized out>) at pthread_join_common.c:145 4 Thread 1251861.1251861 "no-unwaited-for" <unavailable> in ?? () The current thread <Thread ID 1> has terminated. See `help thread'. (gdb) PASS: gdb.threads/no-unwaited-for-left.exp: only thread 3 left, main thread terminated Somehow, above, GDB re-added the zombie leader back before printing "No unwaited-for children left.". The "only thread 3 left, main thread terminated" test should have caught this, but didn't. That is because the test's regexp has a ".*" after the part that matches thread 3. This commit tightens that regexp to catch such a bug. It also tightens the "only main thread left, thread 2 terminated" test's regexp in the same way. Change-Id: I8744f327a0aa0e2669d1ddda88247e99b91cefff
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions