diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-13 23:44:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-05-13 23:44:41 +0100 |
| commit | edecc975384bfef50418e3fb77e5c4629207ec08 (patch) | |
| tree | f82d171743aad7bb7144396533ce387946b52c41 | |
| parent | 05c37bfdb86be26497d5baa448a0cbda20e33bed (diff) | |
Fix test reference after subtitle fixes.
| -rwxr-xr-x | run/tests | 1 | ||||
| -rw-r--r-- | src/lib/cross.cc | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -3,6 +3,7 @@ # e.g. --run_tests=foo export LD_LIBRARY_PATH=build/src/lib:$LD_LIBRARY_PATH +export DCPOMATIC_LINUX_SHARE_PREFIX=`pwd` if [ "$1" == "--debug" ]; then shift; gdb --args build/test/unit-tests --catch_system_errors=no $* diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 9894d885f..29591c69f 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -155,6 +155,12 @@ boost::filesystem::path shared_path () { #ifdef DCPOMATIC_LINUX +#ifdef DCPOMATIC_DEBUG + char const * p = getenv ("DCPOMATIC_LINUX_SHARE_PREFIX"); + if (p) { + return p; + } +#endif return boost::filesystem::canonical (LINUX_SHARE_PREFIX); #endif #ifdef DCPOMATIC_WINDOWS |
