libelektra: Some Tests Fail on OS X

Looks like test_kdb.lua fails on OS X:

        Start  69: test_kdb.lua
 69/117 Test  #69: test_kdb.lua .......................***Failed    0.00 sec
        Start  70: test_key.lua
 70/117 Test  #70: test_key.lua .......................   Passed    0.00 sec
        Start  71: test_keyset.lua
 71/117 Test  #71: test_keyset.lua ....................   Passed    0.00 sec

If I run lua ../src/bindings/swig/lua/tests/test_kdb.lua, then the script just exits with return value 0. If you need any additional information, then please just comment below.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 57 (57 by maintainers)

Commits related to this issue

Most upvoted comments

I can confirm the same behaviour on my machine.

Solution: set the library path correctly: e.g. LD_LIBRARY_PATH="/Users/mpranj/workspace/libelektra/build/lib" ctest -V -R test_kdb.lua works fine for me.

dlopen on OS X searches $LD_LIBRARY_PATH, $DYLD_LIBRARY_PATH, current working directory, $DYLD_FALLBACK_LIBRARY_PATH, I think in that order.

The PR #710 fixes it, however I’m unsure if the fix is very clean.

I currently do not have another idea. (except time-consuming isolation of the problem: to reduce the dlopen call to a minimal example where it won’t work) So it might be best to wait if someone can reproduce the issue, maybe it shines new light on the problem.

I’m sorry but I don’t have OS X. However ctest -V is your friend.