public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gnatmake_version_at_least
@ 2020-02-23  5:35 gdb-buildbot
  2020-02-23  5:54 ` Failures on Fedora-i686, branch master gdb-buildbot
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gdb-buildbot @ 2020-02-23  5:35 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd ***

commit f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd
Author:     Tom de Vries <tdevries@suse.de>
AuthorDate: Thu Feb 13 08:37:34 2020 +0100
Commit:     Tom de Vries <tdevries@suse.de>
CommitDate: Thu Feb 13 08:37:34 2020 +0100

    [gdb/testsuite] Fix gnatmake_version_at_least
    
    After de-installing gnatmake, I get:
    ...
    Running src/gdb/testsuite/gdb.ada/rename_subscript_param.exp ...
    ERROR: tcl error sourcing src/gdb/testsuite/gdb.ada/rename_subscript_param.exp.
    ERROR: couldn't execute "gnatmake": no such file or directory
        while executing
    "exec $gnatmake --version"
        (procedure "gnatmake_version_at_least" line 4)
    ...
    
    Fix this by wrapping the exec call in a catch call.
    
    Tested with and withouth gnatmake installed on x86_64-linux.
    
    gdb/testsuite/ChangeLog:
    
    2020-02-13  Tom de Vries  <tdevries@suse.de>
    
            * lib/ada.exp (gnatmake_version_at_least): Wrap exec call in a catch
            call.

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 06826746d5..6abc56ca85 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-13  Tom de Vries  <tdevries@suse.de>
+
+	* lib/ada.exp (gnatmake_version_at_least): Wrap exec call in a catch
+	call.
+
 2020-02-11  Sergio Durigan Junior  <sergiodj@redhat.com>
 
 	PR tui/25126
diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp
index f8a6a723bb..726977d98f 100644
--- a/gdb/testsuite/lib/ada.exp
+++ b/gdb/testsuite/lib/ada.exp
@@ -136,7 +136,9 @@ proc find_ada_tool {tool} {
 proc gnatmake_version_at_least { major } {
     set gnatmake [gdb_find_gnatmake]
     set gnatmake [lindex [split $gnatmake] 0]
-    set output [exec $gnatmake --version]
+    if {[catch {exec $gnatmake --version} output]} {
+	return 0
+    }
     if { [regexp {GNATMAKE ([^ .]+).([^ .]+).([^ .]+)} $output \
 	      match gnatmake_major gnatmake_minor gnatmake_micro] } {
 	if { $gnatmake_major >= $major } {


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Failures on Fedora-i686, branch master
  2020-02-23  5:35 [binutils-gdb] [gdb/testsuite] Fix gnatmake_version_at_least gdb-buildbot
@ 2020-02-23  5:54 ` gdb-buildbot
  2020-02-23  6:06 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: gdb-buildbot @ 2020-02-23  5:54 UTC (permalink / raw)
  To: gdb-testers

Buildername:
        Fedora-i686

Worker:
        fedora-x86-64-4

Full Build URL:
	https://gdb-buildbot.osci.io/#builders/18/builds/2121

Author:
        Tom de Vries <tdevries@suse.de>

Commit tested:
        f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd

Subject of commit:
        [gdb/testsuite] Fix gnatmake_version_at_least

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-i686/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd/

*** Diff to previous build ***
==============================================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=0: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=1: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-i686/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-i686/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.table.gz>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Failures on Fedora-x86_64-m32, branch master
  2020-02-23  5:35 [binutils-gdb] [gdb/testsuite] Fix gnatmake_version_at_least gdb-buildbot
  2020-02-23  5:54 ` Failures on Fedora-i686, branch master gdb-buildbot
@ 2020-02-23  6:06 ` gdb-buildbot
  2020-02-23  9:23 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
  2020-02-23 13:44 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
  3 siblings, 0 replies; 5+ messages in thread
From: gdb-buildbot @ 2020-02-23  6:06 UTC (permalink / raw)
  To: gdb-testers

Buildername:
        Fedora-x86_64-m32

Worker:
        fedora-x86-64-3

Full Build URL:
	https://gdb-buildbot.osci.io/#builders/17/builds/2117

Author:
        Tom de Vries <tdevries@suse.de>

Commit tested:
        f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd

Subject of commit:
        [gdb/testsuite] Fix gnatmake_version_at_least

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-m32/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd/

*** Diff to previous build ***
==============================================
PASS -> FAIL: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : second pass: run to foo
PASS -> KFAIL: gdb.threads/non-ldr-exit.exp: program exits normally
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m32/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m32/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.table.gz>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Failures on Fedora-x86_64-m64, branch master
  2020-02-23  5:35 [binutils-gdb] [gdb/testsuite] Fix gnatmake_version_at_least gdb-buildbot
  2020-02-23  5:54 ` Failures on Fedora-i686, branch master gdb-buildbot
  2020-02-23  6:06 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
@ 2020-02-23  9:23 ` gdb-buildbot
  2020-02-23 13:44 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot
  3 siblings, 0 replies; 5+ messages in thread
From: gdb-buildbot @ 2020-02-23  9:23 UTC (permalink / raw)
  To: gdb-testers

Buildername:
        Fedora-x86_64-m64

Worker:
        fedora-x86-64-2

Full Build URL:
	https://gdb-buildbot.osci.io/#builders/3/builds/2177

Author:
        Tom de Vries <tdevries@suse.de>

Commit tested:
        f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd

Subject of commit:
        [gdb/testsuite] Fix gnatmake_version_at_least

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-m64/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd/

*** Diff to previous build ***
==============================================
PASS -> KFAIL: gdb.threads/non-ldr-exit.exp: program exits normally
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print k
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print r
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print z
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print i
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print j
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: outer_threads: outer stop: print i
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: outer_threads: outer stop: print j
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m64/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m64/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.table.gz>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Failures on Fedora-x86_64-cc-with-index, branch master
  2020-02-23  5:35 [binutils-gdb] [gdb/testsuite] Fix gnatmake_version_at_least gdb-buildbot
                   ` (2 preceding siblings ...)
  2020-02-23  9:23 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
@ 2020-02-23 13:44 ` gdb-buildbot
  3 siblings, 0 replies; 5+ messages in thread
From: gdb-buildbot @ 2020-02-23 13:44 UTC (permalink / raw)
  To: gdb-testers

Buildername:
        Fedora-x86_64-cc-with-index

Worker:
        fedora-x86-64-1

Full Build URL:
	https://gdb-buildbot.osci.io/#builders/20/builds/2068

Author:
        Tom de Vries <tdevries@suse.de>

Commit tested:
        f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd

Subject of commit:
        [gdb/testsuite] Fix gnatmake_version_at_least

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-cc-with-index/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd/

*** Diff to previous build ***
==============================================
new KFAIL: gdb.opt/inline-cmds.exp: next to second func1
new KFAIL: gdb.reverse/fstatat-reverse.exp: continue to breakpoint: marker2
PASS -> KFAIL: gdb.threads/non-ldr-exit.exp: program exits normally
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print i
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print j
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: single_scope: first thread: print i3
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-cc-with-index/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-cc-with-index/f3/f3b0f7fe42309fa0e00b4d2074b0faefbf2e8ffd//xfail.table.gz>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-23 13:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-23  5:35 [binutils-gdb] [gdb/testsuite] Fix gnatmake_version_at_least gdb-buildbot
2020-02-23  5:54 ` Failures on Fedora-i686, branch master gdb-buildbot
2020-02-23  6:06 ` Failures on Fedora-x86_64-m32, " gdb-buildbot
2020-02-23  9:23 ` Failures on Fedora-x86_64-m64, " gdb-buildbot
2020-02-23 13:44 ` Failures on Fedora-x86_64-cc-with-index, " gdb-buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).