fix a few issues with unit tests
Fix several issues with unit tests
- fix unused argument warnings - running
ninja testsfails on my system due to too many warnings. - fix google benchmark build - sometimes, when building from scratch the build will fail due to compiler warnings. I don't know why it only happens sometimes but I've instead added a warning suppression as this is not an issue in our code.
- fix memory leak I've found here: !3827 (comment 224369)
- fix running two testcases with
ninja testorctest -R. Due to them being dependent on dlopen they would automatically fail if the user environemnt was not modified manually outside cmake. I've modified LD_LIBRARY_PATH for those test cases, meaning you no longer need to run it with LD_LIBRARY_PATH=. or similar prefix.