forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3e486c9
Switch psql's TAP test for query cancellation to use IPC::Run::signal()
Previously, the test relied on a trick with a shell to retrieve the PIDof the psql session to be stopped with SIGINT, that was skipped onWindows. This commit changes the test to use IPC::Run::signal()instead, which still does not work on Windows, but for a differentreason: SIGINT would stop the test before finishing.This should allow the test to run on non-Windows platforms where PPID isnot supported (like NetBSD), spreading it a bit more across thebuildfarm. And the logic of the test is simpler.It is the first time in the tree that IPC::Run::signal() is used, so, asa matter of safety (or just call that as me having cold feet), nobackpatch is done, at least for now.Author: Yugo NAGATAReviewed-by: Fabien CoelhoDiscussion:https://postgr.es/m/20230810125935.22c2922ea5250ba79358965b@sraoss.co.jp1 parent0204e17 commit3e486c9
1 file changed
+2
-36
lines changedLines changed: 2 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 | 13 |
| |
19 | 14 |
| |
20 |
| - | |
| 15 | + | |
21 | 16 |
| |
22 | 17 |
| |
23 |
| - | |
24 |
| - | |
25 | 18 |
| |
26 | 19 |
| |
27 | 20 |
| |
28 | 21 |
| |
29 | 22 |
| |
30 | 23 |
| |
31 | 24 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 | 25 |
| |
42 | 26 |
| |
43 | 27 |
| |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 | 28 |
| |
63 | 29 |
| |
64 | 30 |
| |
| |||
67 | 33 |
| |
68 | 34 |
| |
69 | 35 |
| |
70 |
| - | |
| 36 | + | |
71 | 37 |
| |
72 | 38 |
| |
73 | 39 |
| |
|
0 commit comments
Comments
(0)