From e14ac25777019dec79606d6901e84846d8e9b83f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 29 Mar 2016 00:23:09 +0100 Subject: Don't run forever in execl-update-breakpoint.exp --- gdb/testsuite/gdb.base/execl-update-breakpoints.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/testsuite/gdb.base/execl-update-breakpoints.c b/gdb/testsuite/gdb.base/execl-update-breakpoints.c index 38f1cea..ed389ab 100644 --- a/gdb/testsuite/gdb.base/execl-update-breakpoints.c +++ b/gdb/testsuite/gdb.base/execl-update-breakpoints.c @@ -36,6 +36,8 @@ main (int argc, char **argv) memcpy (bin, argv[0], len + 1); if (bin[len - 1] == '1') bin[len - 1] = '2'; + else + exit (1); execl (bin, bin, (char *) NULL); perror ("execl failed"); -- cgit v1.1