Use usttrace and libraries from the build directory in the test scripts
[ust.git] / tests / dlopen / dlopen.sh
index 723f038cee50656b90da7b1adc7a4a71fa0c89d4..673fdbc9fa448554995f2ba8a840aaed94d2fa6d 100755 (executable)
@@ -25,9 +25,10 @@ source $TESTDIR/tap.sh
 starttest "dlopen"
 
 plan_tests 4
+USTTRACE="$TESTDIR/../usttrace"
 
-LD_LIBRARY_PATH=$TESTDIR/dlopen/.libs okx usttrace $TESTDIR/dlopen/dlopen
-trace_loc=$(usttrace -W)
+LD_LIBRARY_PATH=$TESTDIR/dlopen/.libs okx $USTTRACE -L $TESTDIR/dlopen/dlopen
+trace_loc=$($USTTRACE -W)
 trace_matches -N "from_library" -n 1 "^ust.from_library:" $trace_loc
 trace_matches -N "from_main_before_lib" -n 1 "^ust.from_main_before_lib:" $trace_loc
 trace_matches -N "from_main_after_lib" -n 1 "^ust.from_main_after_lib:" $trace_loc
This page took 0.024731 seconds and 4 git commands to generate.