Guarantee save-and-restore of GDBFLAGS on gdb.base/checkpoint-ns.exp
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / checkpoint-ns.exp
index d3698bab818313dcbf61e40de948fc5e74d1c072..d470bc415564ea1a7d1daff7991d62580dea5831 100644 (file)
@@ -18,9 +18,8 @@
 # We drive non-stop mode from a separate file because the whole test
 # takes a while to run.  This way, we can test both modes in parallel.
 
-set saved_gdbflags $GDBFLAGS
-append GDBFLAGS " -ex \"set non-stop on\""
+save_vars { GDBFLAGS } {
+    append GDBFLAGS " -ex \"set non-stop on\""
 
-source $srcdir/$subdir/checkpoint.exp
-
-set GDBFLAGS $saved_gdbflags
+    source $srcdir/$subdir/checkpoint.exp
+}
This page took 0.036662 seconds and 4 git commands to generate.