2022-07-22 08:10:45 +00:00
|
|
|
Index: strace-5.17/tests/qual_fault.test
|
2022-05-26 18:34:14 +00:00
|
|
|
===================================================================
|
2022-07-22 08:10:45 +00:00
|
|
|
--- strace-5.17.orig/tests/qual_fault.test 2022-06-09 15:47:28.871554186 +0200
|
|
|
|
+++ strace-5.17/tests/qual_fault.test 2022-06-09 15:50:50.016108370 +0200
|
|
|
|
@@ -83,19 +83,36 @@
|
2022-05-26 18:34:14 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
-for err in '' ENOSYS 22 einval; do
|
|
|
|
+case "$STRACE_ARCH" in
|
|
|
|
+ aarch64)
|
|
|
|
+ ERRS='EnoSys 22'
|
|
|
|
+ NUMBERS1='2'
|
|
|
|
+ NUMBERS2='3'
|
|
|
|
+ NUMBERS3='5'
|
2022-07-22 08:10:45 +00:00
|
|
|
+ NUMBERS4='7'
|
2022-05-26 18:34:14 +00:00
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ ERRS='ENOSYS 22 einval'
|
2022-07-22 08:10:45 +00:00
|
|
|
+ NUMBERS1='1 2 3 7'
|
|
|
|
+ NUMBERS2='1 2 5 11'
|
|
|
|
+ NUMBERS3='1 2 3 7'
|
|
|
|
+ NUMBERS4='1 2 7 11'
|
2022-05-26 18:34:14 +00:00
|
|
|
+ ;;
|
|
|
|
+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
|
2022-07-22 08:10:45 +00:00
|
|
|
- for F in 1 2 3 7; do
|
2022-05-26 18:34:14 +00:00
|
|
|
+ for F in $(echo $NUMBERS1); do
|
|
|
|
check_fault_injection \
|
|
|
|
writev $fault "$err" $F '' '' 1
|
|
|
|
check_fault_injection \
|
|
|
|
writev $fault "$err" $F '' + 1
|
|
|
|
|
2022-07-22 08:10:45 +00:00
|
|
|
- for L in 1 2 5 11; do
|
2022-05-26 18:34:14 +00:00
|
|
|
+ for L in $(echo $NUMBERS2); do
|
|
|
|
[ "$L" -ge "$F" ] ||
|
|
|
|
continue
|
|
|
|
check_fault_injection \
|
2022-07-22 08:10:45 +00:00
|
|
|
@@ -104,12 +121,12 @@
|
2022-05-26 18:34:14 +00:00
|
|
|
writev $fault "$err" $F $L + 1
|
|
|
|
done
|
|
|
|
|
2022-07-22 08:10:45 +00:00
|
|
|
- for S in 1 2 3 7; do
|
|
|
|
+ for S in $(echo $NUMBERS3); do
|
2022-05-26 18:34:14 +00:00
|
|
|
check_fault_injection \
|
|
|
|
writev $fault "$err" $F '' $S 1
|
|
|
|
check_fault_injection \
|
|
|
|
writev $fault "$err" $F '' $S 4
|
2022-07-22 08:10:45 +00:00
|
|
|
- for L in 1 2 7 11; do
|
|
|
|
+ for L in $(echo $NUMBERS4); do
|
2022-05-26 18:34:14 +00:00
|
|
|
[ "$L" -ge "$F" ] ||
|
|
|
|
continue
|
|
|
|
check_fault_injection \
|