]> sourceware.org Git - systemtap.git/commitdiff
PR4186 cont'd; fix preprocessor.exp test
authorFrank Ch. Eigler <fche@elastic.org>
Wed, 16 Jun 2010 21:16:51 +0000 (17:16 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Wed, 16 Jun 2010 21:16:51 +0000 (17:16 -0400)
We need to canonicalize 'uname -i' here too.

testsuite/systemtap.base/preprocessor.exp

index 1bc3e701df49ae64f6e73a923acb901095c8b51d..dfb327101144ed376242f0a85797f84eab19b5d4 100644 (file)
@@ -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?}
 
This page took 0.027497 seconds and 5 git commands to generate.