Index: gdb/testsuite/gdb.base/random-signal.c |
diff --git a/gdb/testsuite/gdb.base/attach-pie-noexec.c b/gdb/testsuite/gdb.base/random-signal.c |
similarity index 83% |
copy from gdb/testsuite/gdb.base/attach-pie-noexec.c |
copy to gdb/testsuite/gdb.base/random-signal.c |
index 4de16282835399b3bcee85a664c0a9374fa54d64..3d23bf73ad29744b854529856f9799ef23ed1ff2 100644 |
--- a/gdb/testsuite/gdb.base/attach-pie-noexec.c |
+++ b/gdb/testsuite/gdb.base/random-signal.c |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2011-2012 Free Software Foundation, Inc. |
+ Copyright 2013 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -17,9 +17,13 @@ |
#include <unistd.h> |
-int |
-main (void) |
+int v; |
+ |
+int main() |
{ |
- sleep (600); |
- return 0; |
+ /* Don't let the test case run forever. */ |
+ alarm (60); |
+ |
+ for (;;) |
+ ; |
} |