Skip to content

Commit

Permalink
fix win test
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Aug 29, 2023
1 parent d482327 commit 729967e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/util_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
#include "catch2/matchers/catch_matchers_string.hpp"
#include "utils.h"

#if _WIN32
#include <io.h>
#define dup2(o,n) _dup2(o,n)
#else
#include <unistd.h>
#endif

TEST_CASE("read_file", "[util]") {
const char *test_path = TO_STRING(ZITI_TEST_DIR) "/ctrl_tests.cpp";
Expand Down

0 comments on commit 729967e

Please sign in to comment.