test: fs_spec fails if home is a symlink #38258

This commit is contained in:
Willaaaaaaa
2026-03-12 17:46:18 +08:00
committed by GitHub
parent 32aee065a8
commit c5146362d8
2 changed files with 26 additions and 26 deletions

View File

@@ -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