gdb/testsuite: Fix minor bug in skip_btrace*tests procs
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 18 Nov 2019 18:08:50 +0000 (18:08 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Nov 2019 00:28:58 +0000 (00:28 +0000)
The two guard functions skip_btrace_tests and skip_btrace_pt_tests
have a minor bug, if the check function fails to compile then surely
we should skip the btrace tests - currently we return 0 to indicate
don't skip.

gdb/testsuite/ChangeLog:

* lib/gdb.exp (skip_btrace_tests): Return 1 if the test fails to
compile.
(skip_btrace_pt_tests): Likewise.

Change-Id: I6dfc04b4adcf5b9424fb542ece7ddbe751bee301

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index 86f2130c2698f3f837991b763c5d20bb8f0a2fcc..6b520e1f118cdadd345df573ca746d8edb9af0c8 100644 (file)
@@ -1,3 +1,9 @@
+2019-11-28  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * lib/gdb.exp (skip_btrace_tests): Return 1 if the test fails to
+       compile.
+       (skip_btrace_pt_tests): Likewise.
+
 2019-11-27  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * gdb.fortran/info-modules.exp: Compile source files in correct
index 828c91dd9e919346385a0cb2e144757133216167..4682f5d2f8fe0ce0806f2fa844ce6417fd290d04 100644 (file)
@@ -2942,7 +2942,7 @@ gdb_caching_proc skip_btrace_tests {
     # Compile a test program.
     set src { int main() { return 0; } }
     if {![gdb_simple_compile $me $src executable]} {
-        return 0
+        return 1
     }
 
     # No error message, compilation succeeded so now run it via gdb.
@@ -2993,7 +2993,7 @@ gdb_caching_proc skip_btrace_pt_tests {
     # Compile a test program.
     set src { int main() { return 0; } }
     if {![gdb_simple_compile $me $src executable]} {
-        return 0
+        return 1
     }
 
     # No error message, compilation succeeded so now run it via gdb.
This page took 0.031039 seconds and 4 git commands to generate.