mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user