Commit e32bcc4
committed
[WIP] Polish previous test and added two more
The tests results are quite cute:
```
case line dash bash mksh ash osh
0 4 FAIL pass FAIL pass FAIL signals aren't reset in subshells if not trapping
1 16 pass pass pass pass pass signals are reset in subshells if trapping
2 41 pass pass pass pass FAIL ignored signals aren't reset in subshells
```
More spec tests on the behavior of signal ignoring can be done.
Both `dash` and `mksh` aren't POSIX compliant due to them failing `case 0`.
In the case of `osh`, `case 2` is failed because it doesn't give special
treatment to `trap '' USR1`. All the other sells set the signals to
SIG_IGN, which is different from an empty handler. This also affects
the behavior of `exec`, but that's painful to test.1 parent bd59789 commit e32bcc4
1 file changed
+50
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
5 | 42 | | |
6 | | - | |
7 | | - | |
| 43 | + | |
8 | 44 | | |
| 45 | + | |
9 | 46 | | |
10 | 47 | | |
11 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
12 | 58 | | |
13 | | - | |
14 | | - | |
| 59 | + | |
15 | 60 | | |
16 | 61 | | |
17 | 62 | | |
| |||
0 commit comments