From c1c8646af33450db3261a16b26c80934a6563067 Mon Sep 17 00:00:00 2001 From: Martin Leitner-Ankerl Date: Mon, 9 Oct 2023 13:18:30 +0200 Subject: [PATCH] debug output for windows --- test/fuzz/run.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fuzz/run.cpp b/test/fuzz/run.cpp index 1386c7c8..64f1da28 100644 --- a/test/fuzz/run.cpp +++ b/test/fuzz/run.cpp @@ -84,9 +84,11 @@ auto env(char const* varname) -> std::optional { auto p = std::filesystem::current_path(); while (true) { auto const filename = p / ".fuzz-corpus-base-dir"; + fmt::print("trying '{}'\n", filename.string()); if (std::filesystem::exists(filename)) { if (auto file_content = read_file(p / ".fuzz-corpus-base-dir"); file_content) { auto f = std::filesystem::path(file_content.value()).make_preferred(); + fmt::print("got it! p='{}, f='{}', p/f='{}'\n", p.string(), f.string(), (p / f).string()); return p / f; } // could not read file