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

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