OSDN Git Service

* cpp_variable.test: Catch non-test calls in case we
authorkseitz <kseitz>
Thu, 20 Dec 2001 18:28:35 +0000 (18:28 +0000)
committerkseitz <kseitz>
Thu, 20 Dec 2001 18:28:35 +0000 (18:28 +0000)
could not run.

gdb/testsuite/gdb.gdbtk/ChangeLog
gdb/testsuite/gdb.gdbtk/cpp_variable.test

index 9a7a8e9..54686a1 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-20  Keith Seitz  <keiths@redhat.com>
+
+       * cpp_variable.test: Catch non-test calls in case we
+       could not run.
+
 2001-10-25  Keith Seitz  <keiths@redhat.com>
 
        * defs (_report_error): Fix typo.
index f2e9102..80f7df1 100644 (file)
@@ -185,7 +185,8 @@ gdbtk_test cpp_variable-1.6 {format of v} {
   $var(v) format
 } {natural}
 
-set value [$var(v) value]
+set value {}
+catch {$var(v) value} value
 
 # Step over "V *v = new V;"
 gdb_cmd "next"