From 40b0b9c1a0851ad719647d4bf6b3b0eeb82c8d6a Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 16 Jun 2010 17:16:51 -0400 Subject: [PATCH] PR4186 cont'd; fix preprocessor.exp test We need to canonicalize 'uname -i' here too. --- testsuite/systemtap.base/preprocessor.exp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testsuite/systemtap.base/preprocessor.exp b/testsuite/systemtap.base/preprocessor.exp index 1bc3e701d..dfb327101 100644 --- a/testsuite/systemtap.base/preprocessor.exp +++ b/testsuite/systemtap.base/preprocessor.exp @@ -7,6 +7,10 @@ set kr {2?[0-9]*} set krx {?noSuchKernel*} set arch [exec uname -i] +# normalize arch; PR4186 +if {$arch == "ppc64"} then {set arch powerpc} +if {$arch == "s390x"} then {set arch s390} +if {$arch == "i686"} then {set arch i386} set ar "?[string range $arch 1 end-1]?" set arx {?noSuchArch?} -- 2.43.5