[gdb/testsuite] Fix regexp in gdb.base/foll-vfork.exp
authorTom de Vries <tdevries@suse.de>
Fri, 12 Nov 2021 16:12:56 +0000 (17:12 +0100)
committerTom de Vries <tdevries@suse.de>
Fri, 12 Nov 2021 16:12:56 +0000 (17:12 +0100)
commit1f28b70def1bea937fb9227c8346657016168456
tree5f69fafc6825681d322d44f936f78d16825d997d
parent0b32f05baccc6e1ab7f74a55254c5db86e22522b
[gdb/testsuite] Fix regexp in gdb.base/foll-vfork.exp

On OBS I ran into:
...
(gdb) PASS: gdb.base/foll-vfork.exp: exit: \
  vfork relations in info inferiors: continue to child exit
info inferiors^M
  Num  Description       Connection           Executable        ^M
  1    <null>                                 foll-vfork-exit ^M
* 2    <null>                                 foll-vfork-exit ^M
(gdb) I'm the proud parent of child #5044!^M
FAIL: gdb.base/foll-vfork.exp: exit: vfork relations in info inferiors: \
  vfork relation no longer appears in info inferiors (timeout)
...

Fix this by removing the '$' anchor in the corresponding '$gdb_prompt $'
regexps.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/foll-vfork.exp