From 7b1a6a93a4e94ee859ab2a41c7865b7859d19e62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20=C3=85stholm?= Date: Sun, 3 Mar 2024 22:13:38 +0100 Subject: [PATCH] Fix install_headers test on macOS (and possibly Linux) --- test/standalone/install_headers/check_exists.zig | 6 +++--- .../include/sub_dir/{ignore_me.h => c.ignore_me.h} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename test/standalone/install_headers/include/sub_dir/{ignore_me.h => c.ignore_me.h} (100%) diff --git a/test/standalone/install_headers/check_exists.zig b/test/standalone/install_headers/check_exists.zig index da07af1028..62706749aa 100644 --- a/test/standalone/install_headers/check_exists.zig +++ b/test/standalone/install_headers/check_exists.zig @@ -12,12 +12,12 @@ pub fn main() !void { _ = arg_it.next(); const cwd = std.fs.cwd(); - const cwd_realpath = try cwd.realpathAlloc(arena, ""); + const cwd_realpath = try cwd.realpathAlloc(arena, "."); while (arg_it.next()) |file_path| { if (file_path.len > 0 and file_path[0] == '!') { errdefer std.log.err( - "excluded file check '{s}{c}{s}' failed", + "exclusive file check '{s}{c}{s}' failed", .{ cwd_realpath, std.fs.path.sep, file_path[1..] }, ); if (std.fs.cwd().statFile(file_path[1..])) |_| { @@ -28,7 +28,7 @@ pub fn main() !void { } } else { errdefer std.log.err( - "included file check '{s}{c}{s}' failed", + "inclusive file check '{s}{c}{s}' failed", .{ cwd_realpath, std.fs.path.sep, file_path }, ); _ = try std.fs.cwd().statFile(file_path); diff --git a/test/standalone/install_headers/include/sub_dir/ignore_me.h b/test/standalone/install_headers/include/sub_dir/c.ignore_me.h similarity index 100% rename from test/standalone/install_headers/include/sub_dir/ignore_me.h rename to test/standalone/install_headers/include/sub_dir/c.ignore_me.h