Flipping ifelse.exp test

Mark Kettenis mark.kettenis@xs4all.nl
Mon Jul 17 23:32:00 GMT 2006


Hi folks,

I sometimes see the following failure:

FAIL: gdb.base/ifelse.exp: if 1 with empty body

If everything is all right, the output in gdb.log looks like:

(gdb) if 1
 >end
(gdb) echo got here\n
got here
(gdb) PASS: gdb.base/ifelse.exp: if 1 with empty body

but when it fails, it looks like:

(gdb) if 1
 >end
(gdb) FAIL: gdb.base/ifelse.exp: if 1 with empty body
echo got here\n
got here
(gdb) PASS: gdb.base/ifelse.exp: if 0 with empty body

I fail to see what's wrong with the test though.  The regular
expressions seem to be properly anchored.

Can anyone spot the problem?

Mark



More information about the Gdb mailing list