forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ca8df2
committed
Skip the 004_io_direct.pl test if a pre-flight check fails.
The test previously had a list of OSes that direct I/O was expected towork on. That worked well enough for the systems in our build farm, butdidn't survive contact with the Debian build bots running on tmpfs viaoverlayfs. tmpfs does not support O_DIRECT, but we don't want toexclude Linux generally.The new approach is to try to create an empty file with O_DIRECT fromPerl first. If that fails, we'll skip the test and report what theerror was.Reported-by: Christoph Berg <myon@debian.org>Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>Reviewed-by: Andrew Dunstan <andrew@dunslane.net>Discussion:https://postgr.es/m/ZDYd4A78cT2ULxZZ%40msg.df7cb.de1 parentb37d051 commit6ca8df2
1 file changed
+27
-8
lines changedLines changed: 27 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
| 6 | + | |
5 | 7 |
| |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 |
| |
17 |
| - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
18 | 37 |
| |
19 | 38 |
| |
20 | 39 |
| |
|
0 commit comments
Comments
(0)