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