forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7124e7d
committed
Allow "make check"-style testing to work with musl C library.
The musl dynamic linker saves a pointer to the process' environmentvalue of LD_LIBRARY_PATH very early in startup. When we move/clobberthe environment to make more room for ps status strings, we clobberthat value and thereby prevent libraries from being found viaLD_LIBRARY_PATH, which breaks the use of a temporary installationfor testing purposes. To fix, stop collecting usable space forps status if we notice that the variable we are about to clobberis LD_LIBRARY_PATH. This will result in some reduction in how longthe ps status can be, but it's only likely to occur in temporarytest contexts, so it doesn't seem like a big problem. In any case,we don't have to do it if we see we are on glibc, which surely iswhere the majority of our Linux testing is done.Thomas Munro, Bruce Momjian, and Tom Lane, per report from WolfgangWalther. Back-patch to all supported branches, with the hope thatwe'll set up a buildfarm animal to test on this platform.Discussion:https://postgr.es/m/fddd1cd6-dc16-40a2-9eb5-d7fef2101488@technowledgy.de1 parentd603e67 commit7124e7d
1 file changed
+31
-4
lines changedLines changed: 31 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
120 |
| - | |
| 120 | + | |
| 121 | + | |
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
| |||
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
135 |
| - | |
| 136 | + | |
136 | 137 |
| |
137 | 138 |
| |
138 | 139 |
| |
| |||
161 | 162 |
| |
162 | 163 |
| |
163 | 164 |
| |
164 |
| - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
165 | 192 |
| |
166 | 193 |
| |
167 | 194 |
| |
| |||
196 | 223 |
| |
197 | 224 |
| |
198 | 225 |
| |
199 |
| - | |
| 226 | + | |
200 | 227 |
| |
201 | 228 |
| |
202 | 229 |
| |
|
0 commit comments
Comments
(0)