]> sourceware.org Git - systemtap.git/commitdiff
Tweak elfutils version discovery in the testsuite.
authorDavid Smith <dsmith@redhat.com>
Fri, 31 Mar 2017 19:36:40 +0000 (14:36 -0500)
committerDavid Smith <dsmith@redhat.com>
Fri, 31 Mar 2017 19:36:40 +0000 (14:36 -0500)
* testsuite/lib/systemtap.exp (get_system_info): If we're running a
  version of systemtap compiled with version X of elfutils, but running
  with version Y of elfutils (where Y > X), the elfutils version gets
  reported as 'Y/X'. Make sure to parse this correctly.

testsuite/lib/systemtap.exp

index ee8bddc2b4282cd600b136be9f1198169e05f82a..c2cfe76aa0997df61fae1a71880e825b63689628 100644 (file)
@@ -531,7 +531,7 @@ proc get_system_info {} {
     set full [exec gcc --version | head -1]
     set GCC_FullVersion "$n \[$full\]"
     # Parse elfutils version stap was compiled with
-    regexp {version [^/]*/([^,]*)} [exec stap -V 2>@ stdout] all ELF_Version
+    regexp {version [^/]*/([^,/]*)} [exec stap -V 2>@ stdout] all ELF_Version
     # selinux status
     if [file exists /usr/sbin/getenforce] {
         set SElinux [exec /usr/sbin/getenforce]
This page took 0.032087 seconds and 5 git commands to generate.