Fix potential nil ptr seg fault and CI test issue
[ric-plt/lib/rmr.git] / test / app_test / run_lcall_test.sh
similarity index 95%
rename from test/app_test/run_lcall_test.ksh
rename to test/app_test/run_lcall_test.sh
index 241deb5..944d399 100644 (file)
@@ -168,11 +168,14 @@ else
                fi
        fi
 
-       if [[ -d $build_path/lib64 ]]
+       if [[ -z $LD_LIBRARY_PATH ]]                    # cmake test will set this; we must honour it
        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
 fi