diff test/dynload_plain/dynload_plain.c @ 245:0ba6189a51dd

- dynload dlGetLibraryPath simplifications: * removed mode bit checking on macOS, and assured dlopening files with same flags, instead * consistency changes for OpenBSD
author Tassilo Philipp
date Thu, 04 May 2017 15:11:46 +0200
parents 85b61e8facfe
children ab23f9f2934a
line wrap: on
line diff
--- a/test/dynload_plain/dynload_plain.c	Thu May 04 13:54:29 2017 +0200
+++ b/test/dynload_plain/dynload_plain.c	Thu May 04 15:11:46 2017 +0200
@@ -47,7 +47,6 @@
     "/lib/libc.so",
     "/lib/libc.so.6",
     "/lib/libc.so.7",
-    "/lib/libc.so.39.3", /* hack: for OpenBSD used in dyncall test env */
     "/lib64/libc.so",
     "/lib64/libc.so.6",
     "/lib64/libc.so.7",
@@ -57,6 +56,7 @@
     "/usr/lib/libc.so",
     "/usr/lib/libc.so.6",
     "/usr/lib/libc.so.7",
+    "/usr/lib/libc.so.39.3", /* hack: for OpenBSD used in dyncall test env */
     "/usr/lib/system/libsystem_c.dylib",
     "/usr/lib/libc.dylib",
     "\\ReactOS\\system32\\msvcrt.dll",
@@ -97,7 +97,7 @@
         int b;
         printf("path of lib looked up via handle: %s\n", queriedPath);
         b = (stat(path, &st0) != -1) && (stat(queriedPath, &st1) != -1);
-        printf("lib (inode:%d) and looked up lib (inode:%d) are same: %d\n", b?st0.st_ino:-1, b?st1.st_ino:-1, b && (st0.st_ino == st1.st_ino));
+        printf("lib (inode:%d) and looked up lib (inode:%d) are same: %d\n", b?st0.st_ino:-1, b?st1.st_ino:-1, b && (st0.st_ino == st1.st_ino)); //@@@ on windows, inode numbers returned here are always 0
         r += b && (st0.st_ino == st1.st_ino); /* compare if same lib using inode */
 /*@@@ check of resolved path is absolute*/