summaryrefslogtreecommitdiffstats
path: root/testsuite/lib/systemtap.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/lib/systemtap.exp')
-rw-r--r--testsuite/lib/systemtap.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp
index 3cd7a6ea..e04fe837 100644
--- a/testsuite/lib/systemtap.exp
+++ b/testsuite/lib/systemtap.exp
@@ -182,6 +182,7 @@ proc get_system_info {} {
# Easily parsable version first major minor patch level
set n [exec echo "__GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__" | cpp -P]
set n [string map {" " "."} $n]
+ set n [string map {"\n" ""} $n]
# Plus full version between square brackets.
set full [exec gcc --version | head -1]
set GCC_Version "$n \[$full\]"