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

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