Blame SOURCES/2001-limit-qual_fault-scope-on-aarch64.patch

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