forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit25dd07e
committed
Fix uuid-ossp regression tests based on buildfarm feedback.
The previous version of these tests expected uuid_generate_v1() to alwaysemit MAC addresses with the local-admin and multicast address bits zero.However, several of the buildfarm critters are reporting values with thelocal-admin bit set. (Perhaps they're running inside VMs or jails.)And a couple are reporting values with the multicast bit set, probablymeaning that the UUID library couldn't read the system MAC address.Also, it emerges that if OSSP UUID can't read the system MAC address, itfalls back to V1MC behavior wherein the whole node field gets randomizedeach time, breaking the test that expected the node field to remain stablein V1 output. (It looks like e2fs doesn't behave that way, though.)It's not entirely clear why we can't get a system MAC address, since thebuildfarm scripts would not work without internet access. Nonetheless,the regression tests had better cope with the case, so adjust the teststo expect these behaviors.1 parent71ed8b3 commit25dd07e
2 files changed
+56
-22
lines changedLines changed: 31 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
46 |
| - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 |
| |
48 | 51 |
| |
49 | 52 |
| |
50 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 |
| |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 |
| |
58 | 64 |
| |
| 65 | + | |
| 66 | + | |
59 | 67 |
| |
60 | 68 |
| |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 |
| |
66 | 75 |
| |
67 | 76 |
| |
| |||
77 | 86 |
| |
78 | 87 |
| |
79 | 88 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
84 | 99 |
| |
85 | 100 |
| |
86 | 101 |
| |
| 102 | + | |
87 | 103 |
| |
88 | 104 |
| |
89 | 105 |
| |
|
Lines changed: 25 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
31 | 35 |
| |
32 | 36 |
| |
33 | 37 |
| |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 |
| |
35 |
| - | |
36 |
| - | |
| 43 | + | |
37 | 44 |
| |
| 45 | + | |
| 46 | + | |
38 | 47 |
| |
39 | 48 |
| |
40 |
| - | |
| 49 | + | |
| 50 | + | |
41 | 51 |
| |
42 | 52 |
| |
43 | 53 |
| |
44 | 54 |
| |
45 | 55 |
| |
46 |
| - | |
47 |
| - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
48 | 66 |
| |
49 | 67 |
| |
50 | 68 |
| |
|
0 commit comments
Comments
(0)