forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5105c90
committed
Make GIN tests using injection points concurrent-safe
f587338 has introduced in the test module injection_points a SQLfunction called injection_points_set_local(), that can be used to makeall the injection points linked to the process where they are attached,discarded automatically if any remain once the process exits.e2e3b8a has added a NO_INSTALLCHECK to the test module to preventthe use of installcheck. Now that there is a way to make the testconcurrent-safe, let's use it and remove the installcheck restriction.Concurrency issues could be easily reproduced by running in a tightloop a command like this one, in src/test/modules/gin/ (hardcodingpg_sleep() after attaching injection points enlarges the race window)and a second test suite like contrib/btree_gin/: make installcheck USE_MODULE_DB=1Reviewed-by: Andrey BorodinDiscussion:https://postgr.es/m/ZhNG4Io9uYOgwv3F@paquier.xyz1 parent7e85d1c commit5105c90
File tree
4 files changed
+10
-5
lines changed- src/test/modules/gin
- expected
- sql
4 files changed
+10
-5
lines changedLines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 |
| - | |
10 | 7 |
| |
11 | 8 |
| |
12 | 9 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 |
| |
16 | 23 |
| |
17 | 24 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
17 | 15 |
| |
18 | 16 |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 |
| |
18 | 21 |
| |
19 | 22 |
| |
|
0 commit comments
Comments
(0)