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

b793cd
Index: strace-5.1/tests/qual_fault.test
b793cd
===================================================================
b793cd
--- strace-5.1.orig/tests/qual_fault.test	2018-12-10 01:00:00.000000000 +0100
b793cd
+++ strace-5.1/tests/qual_fault.test	2019-06-13 16:59:58.498626547 +0200
b793cd
@@ -75,18 +75,31 @@
b793cd
 	done
b793cd
 }
b793cd
 
b793cd
-for err in '' ENOSYS 22 einval; do
b793cd
+case "$STRACE_ARCH" in
b793cd
+      aarch64)
b793cd
+      ERRS='EnoSys 22'
b793cd
+      NUMBERS1='2'
b793cd
+      NUMBERS2='3'
b793cd
+      ;;
b793cd
+      *)
b793cd
+      ERRS='ENOSYS 22 einval'
b793cd
+      NUMBERS1='1 2 3 5 7 11'
b793cd
+      NUMBERS2='1 2 3 5 7 11'
b793cd
+      ;;
b793cd
+esac
b793cd
+
b793cd
+for err in '' $(echo $ERRS); do
b793cd
 	for fault in writev desc,51; do
b793cd
 		check_fault_injection \
b793cd
 			writev $fault "$err" '' '' 1 -efault=chdir
b793cd
 		check_fault_injection \
b793cd
 			writev $fault "$err" '' '' 1 -efault=chdir -efault=none
b793cd
-		for F in 1 2 3 5 7 11; do
b793cd
+		for F in $(echo $NUMBERS1); do
b793cd
 			check_fault_injection \
b793cd
 				writev $fault "$err" $F '' 1
b793cd
 			check_fault_injection \
b793cd
 				writev $fault "$err" $F + 1
b793cd
-			for S in 1 2 3 5 7 11; do
b793cd
+			for S in $(echo $NUMBERS2); do
b793cd
 				check_fault_injection \
b793cd
 					writev $fault "$err" $F $S 1
b793cd
 				check_fault_injection \