[cpp-sp] 02/03: Setup error message for AgentConfig_init_fatal_exts on Windows
Rod Widdowson
rdw at steadingsoftware.com
Fri Jan 10 11:40:20 UTC 2025
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=e748a7ad2187beadc5bdc3ece3eb2ee6435e1de7
commit e748a7ad2187beadc5bdc3ece3eb2ee6435e1de7
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Jan 10 11:34:52 2025 +0000
Setup error message for AgentConfig_init_fatal_exts on Windows
---
tests/AgentConfigTests.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/AgentConfigTests.cpp b/tests/AgentConfigTests.cpp
index 935ca095..eb455401 100644
--- a/tests/AgentConfigTests.cpp
+++ b/tests/AgentConfigTests.cpp
@@ -104,11 +104,16 @@ BOOST_FIXTURE_TEST_CASE(AgentConfig_init_syslog, AC_Fixture)
BOOST_FIXTURE_TEST_CASE(AgentConfig_init_fatal_exts, AC_Fixture)
{
// TODO: this is probably going to vary by platform and require alternate validation.
+#ifdef WIN32
+ exceptionCheck checker_fatal("Unable to load extension library: \\path\\to\\extension.so");
+#else
exceptionCheck checker_fatal("dlopen(/path/to/extension.so, 0x0001): tried: ");
+#endif // !WIN32
BOOST_CHECK_EXCEPTION(AgentConfig::getConfig().init(nullptr, (data_path + "fatal-exts-shibboleth.ini").c_str(), true),
runtime_error, checker_fatal.check_message);
}
+
BOOST_FIXTURE_TEST_CASE(AgentConfig_init_nonfatal_exts, AC_Fixture)
{
BOOST_CHECK(AgentConfig::getConfig().init(nullptr, (data_path + "nonfatal-exts-shibboleth.ini").c_str(), true));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list