[cpp-sp] branch main updated: Windows Build: Get the remting tests compiling

Rod Widdowson rdw at steadingsoftware.com
Thu Feb 6 19:49:34 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=4451178883531ce17a8911d1a205845937d8252b

The following commit(s) were added to refs/heads/main by this push:
     new 44511788 Windows Build: Get the remting tests compiling
44511788 is described below

commit 4451178883531ce17a8911d1a205845937d8252b
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Feb 6 19:48:33 2025 +0000

    Windows Build: Get the remting tests compiling
---
 tests/remoting/impl/RemotingServiceTests.cpp | 6 ++++++
 tests/remoting/impl/SecretSourceTests.cpp    | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/tests/remoting/impl/RemotingServiceTests.cpp b/tests/remoting/impl/RemotingServiceTests.cpp
index 48c04fb4..a26d8a84 100644
--- a/tests/remoting/impl/RemotingServiceTests.cpp
+++ b/tests/remoting/impl/RemotingServiceTests.cpp
@@ -27,9 +27,15 @@
 #include <string>
 #include <boost/test/unit_test.hpp>
 
+
 using namespace shibsp;
 using namespace std;
 
+#if defined (_MSC_VER)
+#define setenv(name, value, overwrite) _putenv_s(name, value)
+#define unsetenv(name) _putenv_s(name, "")
+#endif
+
 #define DATA_PATH "./data/remoting/impl/"
 
 namespace {
diff --git a/tests/remoting/impl/SecretSourceTests.cpp b/tests/remoting/impl/SecretSourceTests.cpp
index b4b05235..d251052b 100644
--- a/tests/remoting/impl/SecretSourceTests.cpp
+++ b/tests/remoting/impl/SecretSourceTests.cpp
@@ -33,6 +33,11 @@ using namespace std;
 
 #define DATA_PATH "./data/remoting/impl/"
 
+#if defined (_MSC_VER)
+#define setenv(name, value, overwrite) _putenv_s(name, value)
+#define unsetenv(name) _putenv_s(name, "")
+#endif
+
 namespace {
 
 struct SecretSourceFixture

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list