summaryrefslogtreecommitdiff
path: root/usr/src/test/util-tests/tests/dis/distest.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/test/util-tests/tests/dis/distest.ksh')
-rwxr-xr-x[-rw-r--r--]usr/src/test/util-tests/tests/dis/distest.ksh15
1 files changed, 12 insertions, 3 deletions
diff --git a/usr/src/test/util-tests/tests/dis/distest.ksh b/usr/src/test/util-tests/tests/dis/distest.ksh
index 21b39a69bc..7ec935412b 100644..100755
--- a/usr/src/test/util-tests/tests/dis/distest.ksh
+++ b/usr/src/test/util-tests/tests/dis/distest.ksh
@@ -215,8 +215,16 @@ run_single_file()
test_one "-64" $sfile $cmpfile
;;
tst)
- test_one "-32" $sfile $cmpfile "(32-bit)"
- test_one "-64" $sfile $cmpfile "(64-bit)"
+ case "$arch" in
+ arm64)
+ # arm64 gas doesn't work with -64 or -32 flags.
+ test_one "" $sfile $cmpfile
+ ;;
+ *)
+ test_one "-32" $sfile $cmpfile "(32-bit)"
+ test_one "-64" $sfile $cmpfile "(64-bit)"
+ ;;
+ esac
;;
esac
}
@@ -270,9 +278,10 @@ while getopts ":np:" c $@; do
dt_nodefault="y"
;;
p)
+ OLD_IFS=$IFS
IFS="="
set -A split $OPTARG
- IFS=" "
+ IFS=$OLD_IFS
[[ ${#split[@]} -eq 2 ]] || usage "malformed -p option: $OPTARG"
dt_platforms[${split[0]}]=${split[1]}
;;