--- a/test/jdk/sun/security/krb5/auto/KDC.java Mon Jan 14 12:49:12 2019 +0100
+++ b/test/jdk/sun/security/krb5/auto/KDC.java Mon Jan 14 00:00:00 2019 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -21,6 +21,8 @@
* questions.
*/
+import jdk.test.lib.Platform;
+
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
@@ -1722,8 +1724,7 @@
this.env = Map.of(
"KRB5_CONFIG", base + "/krb5.conf",
"KRB5_TRACE", "/dev/stderr",
- "DYLD_LIBRARY_PATH", nativePath + "/lib",
- "LD_LIBRARY_PATH", nativePath + "/lib");
+ Platform.sharedLibraryPathVariableName(), nativePath + "/lib");
}
@Override
@@ -1815,8 +1816,7 @@
"KRB5_KDC_PROFILE", base + "/kdc.conf",
"KRB5_CONFIG", base + "/krb5.conf",
"KRB5_TRACE", "/dev/stderr",
- "DYLD_LIBRARY_PATH", nativePath + "/lib",
- "LD_LIBRARY_PATH", nativePath + "/lib");
+ Platform.sharedLibraryPathVariableName(), nativePath + "/lib");
}
@Override