From 729967e8efaf32243e77c492abec2ecffd021a08 Mon Sep 17 00:00:00 2001 From: Eugene K Date: Tue, 29 Aug 2023 14:14:22 -0400 Subject: [PATCH] fix win test --- tests/util_tests.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/util_tests.cpp b/tests/util_tests.cpp index 7140d20d..38e93e00 100644 --- a/tests/util_tests.cpp +++ b/tests/util_tests.cpp @@ -16,7 +16,12 @@ #include "catch2/matchers/catch_matchers_string.hpp" #include "utils.h" +#if _WIN32 +#include +#define dup2(o,n) _dup2(o,n) +#else #include +#endif TEST_CASE("read_file", "[util]") { const char *test_path = TO_STRING(ZITI_TEST_DIR) "/ctrl_tests.cpp";