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

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