Blame SOURCES/gdb-rhbz881849-ipv6-2of3.patch

7bc85d
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
7bc85d
From: Sergio Durigan Junior <sergiodj@redhat.com>
7bc85d
Date: Mon, 30 Jul 2018 15:23:27 -0400
7bc85d
Subject: gdb-rhbz881849-ipv6-2of3.patch
7bc85d
7bc85d
Match any kind of error after "cannot resolve name" on lib/gdbserver-support.exp:gdbserver_start
7bc85d
7bc85d
On commit:
7bc85d
7bc85d
commit 7f1f7e23939adc7d71036a17fc6081e3af7ca585
7bc85d
Author: Sergio Durigan Junior <sergiodj@redhat.com>
7bc85d
Date:   Fri Jul 13 16:20:34 2018 -0400
7bc85d
7bc85d
    Expect for another variant of error message when gdbserver cannot resolve hostname
7bc85d
7bc85d
I extended the regular expression being used to identify whether
7bc85d
gdbserver could not resolve a (host)name.  This was needed because the
7bc85d
error message being printed had a different variation across some
7bc85d
systems.  However, as it turns out, I've just noticed that the message
7bc85d
has yet another variation:
7bc85d
7bc85d
  target remote tcp8:123:2353
7bc85d
  tcp8:123:2353: cannot resolve name: System error
7bc85d
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7bc85d
  tcp8:123:2353: No such file or directory.
7bc85d
  (gdb) FAIL: gdb.server/server-connect.exp: tcp8: connect to gdbserver using tcp8:123
7bc85d
7bc85d
which is causing FAILs on some systems (namely, Fedora-i686 on
7bc85d
BuildBot).
7bc85d
7bc85d
So instead of trying to predict everything that can be printed, I
7bc85d
decided to just match anything after the "cannot resolve name: " part.
7bc85d
This patch implements that.
7bc85d
7bc85d
Regression tested on the BuildBot.
7bc85d
7bc85d
gdb/testsuite/ChangeLog:
7bc85d
2018-07-30  Sergio Durigan Junior  <sergiodj@redhat.com>
7bc85d
7bc85d
	* lib/gdbserver-support.exp (gdbserver_start): Match any kind of
7bc85d
	error after "cannot resolve name" string.
7bc85d
7bc85d
diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp
7bc85d
--- a/gdb/testsuite/lib/gdbserver-support.exp
7bc85d
+++ b/gdb/testsuite/lib/gdbserver-support.exp
7bc85d
@@ -326,7 +326,7 @@ proc gdbserver_start { options arguments } {
7bc85d
 		    continue
7bc85d
 		}
7bc85d
 	    }
7bc85d
-	    -re ".*: cannot resolve name: Name or service not known\r\n" {
7bc85d
+	    -re ".*: cannot resolve name: .*\r\n" {
7bc85d
 		error "gdbserver cannot resolve name."
7bc85d
 	    }
7bc85d
 	    timeout {