From c5146362d8564b581042a82019cbae3f7d0d4843 Mon Sep 17 00:00:00 2001 From: Willaaaaaaa Date: Thu, 12 Mar 2026 17:46:18 +0800 Subject: test: fs_spec fails if home is a symlink #38258 --- test/testutil.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/testutil.lua') diff --git a/test/testutil.lua b/test/testutil.lua index bffd9763b5..8a07571e3a 100644 --- a/test/testutil.lua +++ b/test/testutil.lua @@ -106,6 +106,11 @@ function M.neq(expected, actual, context) return luaassert.are_not.same(expected, actual, context) end +--- Compare paths after resolving symlinks with realpath. +function M.eq_paths(expected, actual, context) + return M.eq(uv.fs_realpath(expected), uv.fs_realpath(actual), context) +end + --- Asserts that `cond` is true, or prints a message. --- --- @param cond (boolean) expression to assert -- cgit