From a7c8c9312a88f65ecb43c28c5fba6f26aa87ba5b Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 5 Nov 2012 16:23:36 +0000 Subject: 2012-11-05 Pedro Alves * gdb.base/foll-vfork.c (main): Call perror and _exit if execlp() fails. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/foll-vfork.c | 2 ++ 2 files changed, 7 insertions(+) (limited to 'gdb') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ad0407d..227b24f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-11-05 Pedro Alves + + * gdb.base/foll-vfork.c (main): Call perror and _exit if execlp() + fails. + 2012-11-03 Yao Qi Fix PR gdb/14617. diff --git a/gdb/testsuite/gdb.base/foll-vfork.c b/gdb/testsuite/gdb.base/foll-vfork.c index 3bb37ad..85c5493 100644 --- a/gdb/testsuite/gdb.base/foll-vfork.c +++ b/gdb/testsuite/gdb.base/foll-vfork.c @@ -30,6 +30,8 @@ main () if (pid == 0) { printf ("I'm the child!\n"); execlp ("gdb.base/vforked-prog", "gdb.base/vforked-prog", (char *)0); + perror ("exec failed"); + _exit (1); } else { printf ("I'm the proud parent of child #%d!\n", pid); -- cgit v1.1