- Notifications
You must be signed in to change notification settings - Fork28
Commit9d5c22d
committed
Improve logrotate test so that it meaningfully exercises syslogger.
Discussion of bug #15804 reveals that this test didn't really provethat the syslogger child process ever launched successfully, muchless did anything. It was only checking that the expected log filegets created, and that's done in the postmaster. Moreover, thetest assumed it could rename the log file, which is likely to failon Windows (cf. commitd611175).Instead, use the default log file name pattern, which should resultin a new file name being chosen after 1 second, and verify thatrotation has occurred by checking for a new file name. Also add codeto test that messages actually do propagate through the syslogger.In theory this version of the test should work on Windows, sorevertd611175.Discussion:https://postgr.es/m/15804-3721117bf40fb654@postgresql.org1 parent8334515 commit9d5c22d
1 file changed
+63
-28
lines changedLines changed: 63 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
| 9 | + | |
22 | 10 |
| |
23 |
| - | |
| 11 | + | |
24 | 12 |
| |
25 | 13 |
| |
26 | 14 |
| |
27 |
| - | |
28 |
| - | |
| 15 | + | |
29 | 16 |
| |
30 | 17 |
| |
31 | 18 |
| |
32 | 19 |
| |
33 |
| - | |
| 20 | + | |
34 | 21 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 22 | + | |
38 | 23 |
| |
39 |
| - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
40 | 34 |
| |
41 |
| - | |
42 |
| - | |
43 |
| - | |
| 35 | + | |
44 | 36 |
| |
45 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
46 | 79 |
| |
| 80 | + | |
| 81 | + | |
47 | 82 |
| |
48 |
| - | |
49 | 83 |
| |
50 | 84 |
| |
51 |
| - | |
| 85 | + | |
| 86 | + | |
52 | 87 |
| |
53 | 88 |
|
0 commit comments
Comments
(0)