| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR adds tests that verify the proxy library functionality works correctly without requiring LD_PRELOAD, implementing additional runtime detection mechanisms for the proxy library and cleaning up initialization patterns.
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file| File | Description |
|---|---|
| test/utils/utils_log.cpp | Updates test expectations to reflect renamed logging function |
| src/utils/utils_log.c | Implements single logger initialization pattern with thread-safety |
| src/utils/utils_load_library.c | Adds debug logging for library open/close operations |
| src/utils/utils_common.h | Adds dlopen-based proxy library detection alongside LD_PRELOAD check |
| src/proxy_lib/proxy_lib_linux.c | Removes constructor/destructor priority specifications |
| src/coarse/coarse.c | Simplifies logger initialization by removing platform-specific patterns |
| .github/workflows/reusable_proxy_lib.yml | Adds test run without proxy library to CI workflow |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Sorry, something went wrong.
| static inline int utils_is_running_in_proxy_lib(void) { | ||
| // check if the proxy library is loaded using dlopen() | ||
| void *proxy_lib_handle = | ||
| utils_open_library("libumf_proxy.so", UMF_UTIL_OPEN_LIBRARY_NO_LOAD); |
There was a problem hiding this comment.
The hardcoded library name "libumf_proxy.so" makes this code platform-specific to Linux. Consider using a platform-specific macro or variable to support different operating systems (e.g., "libumf_proxy.dll" on Windows).
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
add proxy lib tests without LD_PRELOAD + needed fixes