mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-27 00:28:14 +00:00
Merge pull request #10642 from maximilianfv/fix/tests-rtc-unique-title-directory
fix(tests): give each RTC test run its own title directory
This commit is contained in:
1 file changed
+2
-2
@@ -8,7 +8,6 @@
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <ctime>
|
||||
#include <chrono>
|
||||
#include <exception>
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
@@ -16,6 +15,7 @@
|
||||
#include <string_view>
|
||||
#include <initializer_list>
|
||||
#include <limits>
|
||||
#include <random>
|
||||
|
||||
static void Require(bool value) { if (!value) std::abort(); }
|
||||
|
||||
@@ -64,7 +64,7 @@ static void SetCompiledSdkVersion(std::byte* process, std::uint32_t version) {
|
||||
}
|
||||
|
||||
static void EnterTitleDirectory(const char* titleId) {
|
||||
const auto directory = std::filesystem::temp_directory_path() / ("rtc-test-" + std::to_string(std::chrono::steady_clock::now().time_since_epoch().count()));
|
||||
const auto directory = std::filesystem::temp_directory_path() / ("rtc-test-" + std::to_string(std::random_device{}()));
|
||||
std::filesystem::create_directories(directory / "app0" / "sce_sys");
|
||||
std::filesystem::current_path(directory);
|
||||
if (titleId == nullptr) return;
|
||||
|
||||
Reference in new issue
Block a user