File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,7 +110,8 @@ jobs:
110110 sudo cmake --install build
111111 cmake --build build --target unit_tests -j$(nproc)
112112 cd build
113- ./unit_tests
113+ # Make sure the freshly built library wins over the one just installed in /usr/local/lib
114+ LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH ./unit_tests
114115 cd test/python
115116 python3 ./unit_tests_python.py
116117 cd ../..
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ jobs:
119119 export PYTHONPATH="$SIMGRID_PYTHON_PATH:$FSMOD_PYTHON_PATH:$DTLMOD_PYTHON_PATH"
120120 echo "PYTHONPATH=$PYTHONPATH"
121121 cd build
122+ # Make sure the freshly built library wins over the one just installed in /usr/local/lib
123+ export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
122124 ./unit_tests 2>&1 | tee sanitizer-output.txt
123125 # Skip Python tests when running with sanitizers - ASan/UBSan don't work well with Python
124126 # The C++ unit tests already cover the core functionality
@@ -222,6 +224,8 @@ jobs:
222224 LD_LIBRARY_PATH : /opt/simgrid/lib:/opt/fsmod/lib:/usr/local/lib
223225 run : |
224226 cd build
227+ # Make sure the freshly built library wins over the one just installed in /usr/local/lib
228+ export LD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH
225229 cmake --build . --target valgrind
226230
227231 - name : Upload Valgrind report
You can’t perform that action at this time.
0 commit comments