about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-04-22 08:36:55 -0600
committerTom Tromey <tromey@adacore.com>2020-04-22 08:36:55 -0600
commit90b4a97efe2af42bd4e124ede1e802f47f1fbc08 (patch)
tree524fe460337e7f84ae2f5e6f2c37fb9884c1a0e5 /src/tools
parent37097fb4f7cc00ca54b5238bbc4f4af92540aa28 (diff)
downloadrust-90b4a97efe2af42bd4e124ede1e802f47f1fbc08.tar.gz
rust-90b4a97efe2af42bd4e124ede1e802f47f1fbc08.zip
Fix compiletest version-parsing tests
The compiletest version-parsing tests failed after the previous patch.
However, I don't believe these tests are correct, in that I don't
think RHEL or CentOS ever put the gdb version number into parentheses.
Instead they display like:

    GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/compiletest/src/tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/tests.rs b/src/tools/compiletest/src/tests.rs
index 388ad75757f..31c151d29e9 100644
--- a/src/tools/compiletest/src/tests.rs
+++ b/src/tools/compiletest/src/tests.rs
@@ -7,9 +7,9 @@ fn test_extract_gdb_version() {
     )*}}}
 
     test! {
-        7000001: "GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)",
+        7000001: "GNU gdb (GDB) CentOS 7.0.1-45.el5.centos",
 
-        7002000: "GNU gdb (GDB) Red Hat Enterprise Linux (7.2-90.el6)",
+        7002000: "GNU gdb (GDB) Red Hat Enterprise Linux 7.2-90.el6",
 
         7004000: "GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04",
         7004001: "GNU gdb (GDB) 7.4.1-debian",