test(libkernel): use a relative directory in the rename test

The guest VFS on Linux does not map absolute host paths, so the test failed
at the first rename there. Match GuestFilesystem.cpp and build the directory
relative to the working directory.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ps54all
2026-10-08 11:36:53 +02:00
parent 372e2d4267
commit 1f580c8dde
+1 -1
View File
@@ -33,7 +33,7 @@ static void Check(bool value, int line) {
int main() {
const RenameFunction rename_nid_postfix = LoadKernelRename();
if (rename_nid_postfix == nullptr) { std::fputs("libkernel does not export rename_nid_postfix\n", stderr); return 1; }
const auto root = std::filesystem::temp_directory_path() / ("aps5-kernel-rename-" +
const auto root = std::filesystem::path("anyps5-kernel-rename-test-" +
std::to_string(std::chrono::steady_clock::now().time_since_epoch().count()));
Require(std::filesystem::create_directory(root));
const auto file = root / "file.txt";