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

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