mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 03:14:34 +01:00
sceIoRename: refuse wildcards, an existing destination, and don't wait on XDEV
Three ways our rename differed from the PSP's: - A wildcard in either path was passed through to the host, so renaming "test*.txt" could quietly rename a real file. The PSP doesn't expand them here, it rejects them outright. - Renaming onto a file that already exists succeeded, because the host rename() replaces the destination. The PSP refuses, and renaming a file onto itself counts as that too. - Crossing devices returned the right error, but after the same wait as everything else. The hardware fails that one immediately. Fixes io/file/rename, moved to tests_good. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JvJR8oJNSCimCM9KXVLjfq
This commit is contained in:
1 parent
fd72f308af
commit
5a84f287c4
2 files changed
+21
-1
No files matched your search
@@ -211,6 +211,7 @@ tests_good = [
|
||||
"intr/suspended",
|
||||
"intr/vblank/vblank",
|
||||
"io/cwd/cwd",
|
||||
"io/file/rename",
|
||||
"io/open/badparent",
|
||||
"jpeg/create",
|
||||
"jpeg/delete",
|
||||
@@ -452,7 +453,6 @@ tests_next = [
|
||||
"intr/waits",
|
||||
"io/directory/directory",
|
||||
"io/file/file",
|
||||
"io/file/rename",
|
||||
"io/io/io",
|
||||
"io/iodrv/iodrv",
|
||||
"io/open/tty0",
|
||||
|
||||
Reference in new issue
Block a user