aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-08-23 12:18:27 -0600
committerTom Tromey <tromey@redhat.com>2013-11-04 11:02:07 -0700
commit59b28c5dd267407c63968cb18d9f3c5aa78fa2ba (patch)
tree15bb3b7341abbd7745fb2f733521cd48839aea12 /gdb/testsuite/gdb.base/checkpoint.c
parentsimple changes in gdb.base (diff)
downloadbinutils-gdb-59b28c5dd267407c63968cb18d9f3c5aa78fa2ba.tar.gz
binutils-gdb-59b28c5dd267407c63968cb18d9f3c5aa78fa2ba.tar.bz2
binutils-gdb-59b28c5dd267407c63968cb18d9f3c5aa78fa2ba.zip
update checkpoint test
This fixes the "checkpoint" test to use the standard output directory. This makes the test be parallel-safe. 2013-11-04 Tom Tromey <tromey@redhat.com> * gdb.base/checkpoint.c (main): Use PI_TXT and COPY1_TXT defines. * gdb.base/checkpoint.exp: Define PI_TXT and COPY1_TXT during compilation. Use prepare_for_testing, standard_output_file.
Diffstat (limited to 'gdb/testsuite/gdb.base/checkpoint.c')
-rw-r--r--gdb/testsuite/gdb.base/checkpoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/checkpoint.c b/gdb/testsuite/gdb.base/checkpoint.c
index c2870944aa6..d49804764eb 100644
--- a/gdb/testsuite/gdb.base/checkpoint.c
+++ b/gdb/testsuite/gdb.base/checkpoint.c
@@ -28,8 +28,8 @@ main()
long i;
int c = 0;
- in = fopen ("pi.txt", "r");
- out = fopen ("copy1.txt", "w");
+ in = fopen (PI_TXT, "r");
+ out = fopen (COPY1_TXT, "w");
if (!in || !out)
{
@@ -54,6 +54,6 @@ main()
fclose (in);
fclose (out);
printf ("Deleting copy.\n"); /* breakpoint 3 */
- unlink ("copy1.txt");
+ unlink (COPY1_TXT);
exit (0); /* breakpoint 4 */
}