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

b9c696
Index: strace-5.7/tests/qual_fault.test
b9c696
===================================================================
b9c696
--- strace-5.7.orig/tests/qual_fault.test	2020-06-02 10:41:25.870177356 +0200
b9c696
+++ strace-5.7/tests/qual_fault.test	2020-06-02 10:48:33.284302800 +0200
b9c696
@@ -83,19 +83,34 @@
b9c696
 	done
b9c696
 }
b9c696
 
b9c696
-for err in '' ENOSYS 22 einval; do
b9c696
+case "$STRACE_ARCH" in
b9c696
+	aarch64)
b9c696
+	ERRS='EnoSys 22'
b9c696
+	NUMBERS1='2'
b9c696
+	NUMBERS2='3'
b9c696
+	NUMBERS2='5'
b9c696
+	;;
b9c696
+	*)
b9c696
+	ERRS='ENOSYS 22 einval'
b9c696
+	NUMBERS1='1 2 3 5 7 11'
b9c696
+	NUMBERS2='1 2 3 5 7 11'
b9c696
+	NUMBERS3='1 2 3 5 7 11'
b9c696
+	;;
b9c696
+esac
b9c696
+
b9c696
+for err in '' $(echo $ERRS); do
b9c696
 	for fault in writev desc,51; do
b9c696
 		check_fault_injection \
b9c696
 			writev $fault "$err" '' '' '' 1 -efault=chdir
b9c696
 		check_fault_injection \
b9c696
 			writev $fault "$err" '' '' '' 1 -efault=chdir -efault=none
b9c696
-		for F in 1 2 3 5 7 11; do
b9c696
+		for F in $(echo $NUMBERS1); do
b9c696
 			check_fault_injection \
b9c696
 				writev $fault "$err" $F '' '' 1
b9c696
 			check_fault_injection \
b9c696
 				writev $fault "$err" $F '' + 1
b9c696
 
b9c696
-			for L in 1 2 3 5 7 11; do
b9c696
+			for L in $(echo $NUMBERS2); do
b9c696
 				[ "$L" -ge "$F" ] ||
b9c696
 					continue
b9c696
 				check_fault_injection \
b9c696
@@ -104,12 +119,12 @@
b9c696
 					writev $fault "$err" $F $L + 1
b9c696
 			done
b9c696
 
b9c696
-			for S in 1 2 3 5 7 11; do
b9c696
+			for S in $(echo $NUMBERS2); do
b9c696
 				check_fault_injection \
b9c696
 					writev $fault "$err" $F '' $S 1
b9c696
 				check_fault_injection \
b9c696
 					writev $fault "$err" $F '' $S 4
b9c696
-				for L in 1 2 3 5 7 11; do
b9c696
+				for L in $(echo $NUMBERS3); do
b9c696
 					[ "$L" -ge "$F" ] ||
b9c696
 						continue
b9c696
 					check_fault_injection \