zos,test: fix spawn_empty_env for shared library build
z/OS uses LIBPATH instead of LD_LIBRARY_PATH for the search path for shared libraries. PR-URL: https://github.com/libuv/libuv/pull/2737 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
d9cd7d437d
commit
1099d298d4
@ -236,13 +236,14 @@ TEST_IMPL(spawn_empty_env) {
|
|||||||
char* env[1];
|
char* env[1];
|
||||||
|
|
||||||
/* The autotools dynamic library build requires the presence of
|
/* The autotools dynamic library build requires the presence of
|
||||||
* DYLD_LIBARY_PATH (macOS) or LD_LIBRARY_PATH (other Unices)
|
* DYLD_LIBARY_PATH (macOS) or LD_LIBRARY_PATH/LIBPATH (other Unices)
|
||||||
* in the environment, but of course that doesn't work with
|
* in the environment, but of course that doesn't work with
|
||||||
* the empty environment that we're testing here.
|
* the empty environment that we're testing here.
|
||||||
*/
|
*/
|
||||||
if (NULL != getenv("DYLD_LIBRARY_PATH") ||
|
if (NULL != getenv("DYLD_LIBRARY_PATH") ||
|
||||||
NULL != getenv("LD_LIBRARY_PATH")) {
|
NULL != getenv("LD_LIBRARY_PATH") ||
|
||||||
RETURN_SKIP("doesn't work with DYLD_LIBRARY_PATH/LD_LIBRARY_PATH");
|
NULL != getenv("LIBPATH")) {
|
||||||
|
RETURN_SKIP("doesn't work with DYLD_LIBRARY_PATH/LD_LIBRARY_PATH/LIBPATH");
|
||||||
}
|
}
|
||||||
|
|
||||||
init_process_options("spawn_helper1", exit_cb);
|
init_process_options("spawn_helper1", exit_cb);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user