From 30cd9e43e1bbf0ccb8d4e131988ac9eeb6e3dab3 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Wed, 17 Dec 2025 12:51:09 -0500 Subject: [PATCH] Fix windows build of new source accessor test We don't have the dirFd on window at this time. --- src/libutil-tests/source-accessor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil-tests/source-accessor.cc b/src/libutil-tests/source-accessor.cc index a6f77d42e..9c7e05b82 100644 --- a/src/libutil-tests/source-accessor.cc +++ b/src/libutil-tests/source-accessor.cc @@ -91,7 +91,9 @@ TEST_F(FSSourceAccessorTest, works) { RestoreSink sink(false); sink.dstPath = tmpDir; +#ifndef _WIN32 sink.dirFd = openDirectory(tmpDir); +#endif sink.createDirectory(CanonPath("subdir")); sink.createRegularFile(CanonPath("file1"), [](CreateRegularFileSink & crf) { crf("content1"); }); sink.createRegularFile(CanonPath("subdir/file2"), [](CreateRegularFileSink & crf) { crf("content2"); });