Skip to content

Commit b5710c2

Browse files
committed
Work around intermittent test failure where gdb just forgets to process a command in a list of multiple commands
See https://buildkite.com/julialang/rr/builds/1439#018ae9dd-9eb5-4f02-87ea-dfb3804edbc6 We issue these commands without waiting cond 1 v2*v2==4 cond 2 !(v2*v2==4) c Gdb does (rr) cond 1 v2*v2==4 (rr) cond 2 !(v2*v2==4) (rr) and then just hangs without executed the "c". This commit uses the Python interpreter to do all 3 commands in one input line. Seems to fix the problem.
1 parent ed1ab9b commit b5710c2

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/test/breakpoint_conditions.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
from util import *
22

33
def test_cond(c):
4-
send_gdb('cond 1 %s'%c)
5-
# check that the condition is evaluated correctly by checking that
6-
# we don't break on the negation of the condition
7-
send_gdb('cond 2 !(%s)'%c)
8-
send_gdb('c')
4+
send_gdb('python gdb.execute("cond 1 %s"); gdb.execute("cond 2 !(%s)"); gdb.execute("c")' % (c, c))
95
expect_gdb('Breakpoint 1')
106

117
send_gdb('b breakpointA')

0 commit comments

Comments
 (0)