1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Merge pull request #13070 from DeterminateSystems/fix-windows

Don't build MonitorFdHup test on Windows
This commit is contained in:
John Ericson 2025-04-23 14:23:15 -04:00 committed by GitHub
commit 9eb608cbef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,10 @@
#include "nix/util/util.hh" #ifndef _WIN32
#include "nix/util/monitor-fd.hh"
#include <sys/file.h> # include "nix/util/util.hh"
#include <gtest/gtest.h> # include "nix/util/monitor-fd.hh"
# include <sys/file.h>
# include <gtest/gtest.h>
namespace nix { namespace nix {
TEST(MonitorFdHup, shouldNotBlock) TEST(MonitorFdHup, shouldNotBlock)
@ -16,3 +18,5 @@ TEST(MonitorFdHup, shouldNotBlock)
} }
} }
} }
#endif