keiths / rpms / gdb

Forked from rpms/gdb 7 days ago
Clone
a8767b3
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
240ac8e
From: Andrew Burgess <aburgess@redhat.com>
f524ac5
Date: Fri, 27 Oct 2017 21:07:50 +0200
fd7e5d7
Subject: gdb-6.3-rh-testversion-20041202.patch
f524ac5
240ac8e
;; Check distro name is included in the version output.
f637971
240ac8e
diff --git a/gdb/testsuite/gdb.base/fedora-version.exp b/gdb/testsuite/gdb.base/fedora-version.exp
240ac8e
new file mode 100644
240ac8e
--- /dev/null
240ac8e
+++ b/gdb/testsuite/gdb.base/fedora-version.exp
240ac8e
@@ -0,0 +1,22 @@
240ac8e
+# Copyright 2023 Free Software Foundation, Inc.
240ac8e
+
240ac8e
+# This program is free software; you can redistribute it and/or modify
240ac8e
+# it under the terms of the GNU General Public License as published by
240ac8e
+# the Free Software Foundation; either version 3 of the License, or
240ac8e
+# (at your option) any later version.
240ac8e
+#
240ac8e
+# This program is distributed in the hope that it will be useful,
240ac8e
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
240ac8e
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
240ac8e
+# GNU General Public License for more details.
240ac8e
+#
240ac8e
+# You should have received a copy of the GNU General Public License
240ac8e
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
240ac8e
+
240ac8e
+# Start with a fresh gdb
240ac8e
+clean_restart
240ac8e
+
240ac8e
+# Check the version string contains either the Fedora or RHEL distro
240ac8e
+# name, and that the version number looks roughly correct in format.
240ac8e
+gdb_test "show version" \
240ac8e
+    "GNU gdb \\((Fedora Linux|Red Hat Enterprise Linux)\\) \[0-9\]+\\.\[0-9\]+-\[0-9\]+.*"