summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/IOS
AgeCommit message (Collapse)Author
2026-07-26IOS/FS: Fix loading savestate when files are openJosJuice
We already had code to close open host files when reading or writing a savestate, but due to d35fe1b we also need to close open guest files when reading a savestate, otherwise DoStateRead fails to delete them. I was considering an alternative solution where instead of copying and clearing m_handles, we just set `handle.opened = false;` for each handle before reading a savestate (but not before writing a savestate). However, this wouldn't solve the problem of DoStateWriteOrMeasure's calls to OpenFile failing due to all handles being open. I'm not aware of any games that have that many handles open, though.
2026-01-17Common: Replace Result with C++23's std::expected.Jordan Woyak
2025-05-18Merge pull request #13672 from ↵Jordan Woyak
tygyh/UnitTests/Remove-redundant-template-type-specifiers UnitTests: Remove redundant template type specifers
2025-05-16UnitTests: Remove redundant template type specifersDr. Dystopia
2025-05-16UnitTests/Core: Make parameters constantDr. Dystopia
2025-05-07Merge pull request #13572 from ↵Jordan Woyak
tygyh/UnitTests-Remove-redundant-virtual-specifier UnitTests: Remove redundant `virtual` specifier
2025-04-23UnitTests: Remove redundant `virtual` specifierDr. Dystopia
2025-04-23UnitTests: Use `constexpr`Dr. Dystopia
2025-01-06Fix several minor warningsSintendo
2024-10-10Modernize `std::count` with rangesmitaclaw
2023-11-05Skylanders: Improve figure data view and generationMandar1jn
Co-authored-by: deReeperJosh <joshua@dereeper.co.nz>
2023-07-14UnitTests: Enable cluster check in FileSystemTest.GetDirectoryStats.Admiral H. Curtiss
2022-06-03UnitTests: Fix -Wrange-loop-construct warningsDentomologist
Don't use reference variable bound to a temporary value
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-01-22UnitTests: Add setup error checkingDentomologist
Check return value of calls to File::CreateTempDir() from CoreTiming, FileSystem, and MMIO test classes to verify the test user directory exists, and fail the tests otherwise.
2020-08-16UnitTests: quiet warningsShawn Hoffman
2020-01-30IOS/FS: Fix CreateFullPath to not create directories that already existLéo Lam
This fixes CreateFullPath to not create directories when it is known that they already exist, instead of calling CreateDirectory anyway and checking if the error is AlreadyExists. (That doesn't work now that we have an accurate implementation of CreateDirectory that performs permission checks before checking for existence.) I'm not sure what I was thinking when I wrote that function. Also adds some tests for CreateFullPath.
2020-01-25UnitTests/FS: Improve deletion testLéo Lam
* Test recursive directory deletion * Test "in use" check for both files and directories
2020-01-25UnitTests/FS: Add ReadDirectory ordering test (issue 10234)Léo Lam
2020-01-25UnitTests/FS: Fix file rename testsLéo Lam
Files cannot be given a different file name, only moved across directories. Add a test for that behaviour and fix the existing RenameWithExistingTargetFile test.
2020-01-25UnitTests/FS: Add path validity and splitting testsLéo Lam
2020-01-25UnitTests/FS: Add metadata testsLéo Lam
2018-06-03FS: Add a struct for modesLéo Lam
As suggested here: https://dolp.in/pr7059#pullrequestreview-125401778 More descriptive than having a std::tuple of FS::Mode, and lets us give names to known triplets of modes (like in ES). Functions that only forward mode arguments are slightly less verbose now too.
2018-05-08IOS/FS: Fix rename not handling existing target correctlyLéo Lam
The existing backend did not handle cases where the target exists correctly. This is a bug that has been around forever but was only recently exposed when ES started to use our FS code. Also adds some unit tests to make sure this won't get broken again.
2018-04-15UnitTests: Add tests for the Wii filesystemLéo Lam
This adds unit tests for the Wii filesystem now that the filesystem interface is neatly separated from the IPC code. Basic FS functionality is tested, in addition to problematic usages and edge cases that Dolphin used to handle incorrectly (which of course broke emulated software). These tests should make it quite a bit harder to introduce regressions. Issues that are covered by the tests in particular: * Metadata: issue 10234 (though tests are commented out for now because Dolphin doesn't support NAND images yet so it can't track metadata); * EOF seeks/reads: https://github.com/dolphin-emu/dolphin/pull/4942 * Read/write operations from multiple handles: see issue 2917, 5232 and 8702 and https://github.com/dolphin-emu/dolphin/pull/2649
2017-06-26Add CommonTitles.h for common Wii title IDsLéo Lam
2017-06-14IOS/ESFormats: Use SignedBlobReader for TMDs and ticketsLéo Lam
2017-04-05Add unit tests for IOS/ESFormatsLéo Lam
This adds unit tests for IOS/ESFormats, and in particular, for the TMDReader. It is tested using invalid TMDs (to check IsValid()) and two valid, properly signed TMDs. Things which are now tested: * Title type helper functions. * TMDReader: Validity check. * TMDReader: General information returned by the Get*() methods. * TMDReader: Raw TMD and generated TMD view, compared against IOS. * TMDReader: Game ID generation code (which is Dolphin specific). * TMDReader: Content information: getting by ID/index, order, metadata.