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

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