Ticket #75 (closed defect: fixed)

Opened 2 years ago

Last modified 5 months ago

UnitTest rely on external LD_LIBRARY_PATH

Reported by: vossg Assigned to: unassigned
Priority: minor Milestone: 2.0 Beta
Component: Build Version: 2.0
Keywords: Cc:
Completion:

Description

Unittests fail because the do not setup the environment to make sure they run against the libs just

build. As they are automatically run by the scons build I would expect them to take more care

and not just pull in whatever library they find first. They also fail if no LD_LIBRARY_PATH is set.

Change History

10/03/06 22:54:26 changed by anonymous

Hm, grmbl. True.

I don't know a portable way to set LD_LIBRARY_PATH. :(

I can't really think of any alternative. Do we need to special-case it for Unix, Windows and MacOS?

10/04/06 16:57:22 changed by jsd

what about linking unittests with -Wl,-rpath,… at least under unix-like systems?

10/04/06 18:06:41 changed by dirk

We can do either that or just set LD_LIBRARY_PATH, I was just hoping to find a portable solution…

In lieu of that we will probably ave to special case it, or maybe add it to scons-addons.