|
|
8e169c |
Limit the scope of qual_fault.tests on aarch64 as otherwise it takes
|
|
|
8e169c |
unacceptable amount of time on available builders (more than an hour).
|
|
|
1965e5 |
Index: strace-5.7/tests/qual_fault.test
|
|
|
8e169c |
===================================================================
|
|
|
1965e5 |
--- strace-5.7.orig/tests/qual_fault.test 2020-06-02 10:41:25.870177356 +0200
|
|
|
1965e5 |
+++ strace-5.7/tests/qual_fault.test 2020-06-02 10:48:33.284302800 +0200
|
|
|
1965e5 |
@@ -83,19 +83,35 @@
|
|
|
8e169c |
done
|
|
|
8e169c |
}
|
|
|
8e169c |
|
|
|
8e169c |
-for err in '' ENOSYS 22 einval; do
|
|
|
8e169c |
+
|
|
|
8e169c |
+case "$STRACE_ARCH" in
|
|
|
8e169c |
+ aarch64)
|
|
|
1965e5 |
+ ERRS='EnoSys 22'
|
|
|
8e169c |
+ NUMBERS1='2'
|
|
|
8e169c |
+ NUMBERS2='3'
|
|
|
1965e5 |
+ NUMBERS3='5'
|
|
|
8e169c |
+ ;;
|
|
|
8e169c |
+ *)
|
|
|
8e169c |
+ ERRS='ENOSYS 22 einval'
|
|
|
8e169c |
+ NUMBERS1='1 2 3 5 7 11'
|
|
|
8e169c |
+ NUMBERS2='1 2 3 5 7 11'
|
|
|
1965e5 |
+ NUMBERS3='1 2 3 5 7 11'
|
|
|
8e169c |
+ ;;
|
|
|
8e169c |
+esac
|
|
|
8e169c |
+
|
|
|
8e169c |
+for err in '' $(echo $ERRS); do
|
|
|
8e169c |
for fault in writev desc,51; do
|
|
|
8e169c |
check_fault_injection \
|
|
|
1965e5 |
writev $fault "$err" '' '' '' 1 -efault=chdir
|
|
|
8e169c |
check_fault_injection \
|
|
|
1965e5 |
writev $fault "$err" '' '' '' 1 -efault=chdir -efault=none
|
|
|
8e169c |
- for F in 1 2 3 5 7 11; do
|
|
|
8e169c |
+ for F in $(echo $NUMBERS1); do
|
|
|
8e169c |
check_fault_injection \
|
|
|
1965e5 |
writev $fault "$err" $F '' '' 1
|
|
|
8e169c |
check_fault_injection \
|
|
|
1965e5 |
writev $fault "$err" $F '' + 1
|
|
|
1965e5 |
|
|
|
1965e5 |
- for L in 1 2 3 5 7 11; do
|
|
|
1965e5 |
+ for L in $(echo $NUMBERS2); do
|
|
|
1965e5 |
[ "$L" -ge "$F" ] ||
|
|
|
1965e5 |
continue
|
|
|
1965e5 |
check_fault_injection \
|
|
|
1965e5 |
@@ -104,12 +119,12 @@
|
|
|
1965e5 |
writev $fault "$err" $F $L + 1
|
|
|
1965e5 |
done
|
|
|
1965e5 |
|
|
|
8e169c |
- for S in 1 2 3 5 7 11; do
|
|
|
8e169c |
+ for S in $(echo $NUMBERS2); do
|
|
|
8e169c |
check_fault_injection \
|
|
|
1965e5 |
writev $fault "$err" $F '' $S 1
|
|
|
8e169c |
check_fault_injection \
|
|
|
1965e5 |
writev $fault "$err" $F '' $S 4
|
|
|
1965e5 |
- for L in 1 2 3 5 7 11; do
|
|
|
1965e5 |
+ for L in $(echo $NUMBERS3); do
|
|
|
1965e5 |
[ "$L" -ge "$F" ] ||
|
|
|
1965e5 |
continue
|
|
|
1965e5 |
check_fault_injection \
|