This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 44265316eb205e186dae91c999b33c80e4cf18e9
Author: Kim Woelders <[email protected]>
AuthorDate: Mon Sep 14 08:50:26 2026 +0200

    test: Fix test_load when running configure with absolute path
    
    Patch by pmenzel.
    
    https://git.enlightenment.org/old/legacy-imlib2/issues/36
---
 test/test_load.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/test/test_load.cpp b/test/test_load.cpp
index 30413f5..898c5bc 100644
--- a/test/test_load.cpp
+++ b/test/test_load.cpp
@@ -154,8 +154,11 @@ test_load(void)
 
         if (strchr(pfxs[i], '.') == 0)
         {
-            snprintf(filei, sizeof(filei),
-                     "../%s/%s.%s", IMG_SRC, FILE_PFX1, pfxs[i]);
+            // The symlinks are created in IMG_GEN, one level below the build
+            // directory, so a relative IMG_SRC must be prefixed with "../".
+            snprintf(filei, sizeof(filei), "%s%s/%s.%s",
+                     IMG_SRC[0] == '/' ? "" : "../",
+                     IMG_SRC, FILE_PFX1, pfxs[i]);
             for (j = 0; j < N_PFX; j++)
             {
                 // Load certain types pretending they are something else

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to