024872
Index: strace-5.17/tests/qual_fault.test
2eae47
===================================================================
024872
--- strace-5.17.orig/tests/qual_fault.test	2022-06-09 15:47:28.871554186 +0200
024872
+++ strace-5.17/tests/qual_fault.test	2022-06-09 15:50:50.016108370 +0200
024872
@@ -83,19 +83,36 @@
2eae47
 	done
2eae47
 }
2eae47
 
2eae47
-for err in '' ENOSYS 22 einval; do
2eae47
+case "$STRACE_ARCH" in
2eae47
+	aarch64)
d811e0
+	ERRS='EnoSys 22'
2eae47
+	NUMBERS1='2'
2eae47
+	NUMBERS2='3'
d811e0
+	NUMBERS3='5'
024872
+	NUMBERS4='7'
2eae47
+	;;
2eae47
+	*)
2eae47
+	ERRS='ENOSYS 22 einval'
024872
+	NUMBERS1='1 2 3 7'
024872
+	NUMBERS2='1 2 5 11'
024872
+	NUMBERS3='1 2 3 7'
024872
+	NUMBERS4='1 2 7 11'
2eae47
+	;;
2eae47
+esac
2eae47
+
2eae47
+for err in '' $(echo $ERRS); do
2eae47
 	for fault in writev desc,51; do
2eae47
 		check_fault_injection \
d811e0
 			writev $fault "$err" '' '' '' 1 -efault=chdir
2eae47
 		check_fault_injection \
d811e0
 			writev $fault "$err" '' '' '' 1 -efault=chdir -efault=none
024872
-		for F in 1 2 3 7; do
2eae47
+		for F in $(echo $NUMBERS1); do
2eae47
 			check_fault_injection \
d811e0
 				writev $fault "$err" $F '' '' 1
2eae47
 			check_fault_injection \
d811e0
 				writev $fault "$err" $F '' + 1
d811e0
 
024872
-			for L in 1 2 5 11; do
d811e0
+			for L in $(echo $NUMBERS2); do
d811e0
 				[ "$L" -ge "$F" ] ||
d811e0
 					continue
d811e0
 				check_fault_injection \
024872
@@ -104,12 +121,12 @@
d811e0
 					writev $fault "$err" $F $L + 1
d811e0
 			done
d811e0
 
024872
-			for S in 1 2 3 7; do
024872
+			for S in $(echo $NUMBERS3); do
2eae47
 				check_fault_injection \
d811e0
 					writev $fault "$err" $F '' $S 1
2eae47
 				check_fault_injection \
d811e0
 					writev $fault "$err" $F '' $S 4
024872
-				for L in 1 2 7 11; do
024872
+				for L in $(echo $NUMBERS4); do
d811e0
 					[ "$L" -ge "$F" ] ||
d811e0
 						continue
d811e0
 					check_fault_injection \