This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Flipping ifelse.exp test


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]