Fix potential nil ptr seg fault and CI test issue
[ric-plt/lib/rmr.git] / test / app_test / run_multi_test.sh
similarity index 95%
rename from test/app_test/run_multi_test.ksh
rename to test/app_test/run_multi_test.sh
index acc065d..d8cf765 100644 (file)
@@ -154,12 +154,16 @@ else
        fi
 fi
 
-if [[ -d $build_path/lib64 ]]
+if [[ -z LD_LIBRARY_PATH ]]                    # if cmake test sets we must honour
 then
-       export LD_LIBRARY_PATH=$build_path:$build_path/lib64:$LD_LIBRARY_PATH
-else
-       export LD_LIBRARY_PATH=$build_path:$build_path/lib:$LD_LIBRARY_PATH
+       if [[ -d $build_path/lib64 ]]
+       then
+               export LD_LIBRARY_PATH=$build_path:$build_path/lib64:$LD_LIBRARY_PATH
+       else
+               export LD_LIBRARY_PATH=$build_path:$build_path/lib:$LD_LIBRARY_PATH
+       fi
 fi
+
 export LIBRARY_PATH=$LD_LIBRARY_PATH
 export RMR_SEED_RT=./multi.rt