mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Test fix
This commit is contained in:
@@ -209,7 +209,7 @@ void SetCurrentThreadNameThroughException(const char *threadName) {
|
||||
|
||||
void AssertCurrentThreadName(const char *threadName) {
|
||||
#ifdef TLS_SUPPORTED
|
||||
if (strcmp(curThreadName, threadName) != 0) {
|
||||
if (curThreadName && strcmp(curThreadName, threadName) != 0) {
|
||||
ERROR_LOG(Log::System, "Thread name assert failed: Expected %s, was %s", threadName, curThreadName);
|
||||
_dbg_assert_msg_(false, "Thread name assert failed: Expected %s, was %s", threadName, curThreadName);
|
||||
}
|
||||
|
||||
@@ -144,8 +144,6 @@ void Core_ListenLifecycle(CoreLifecycleFunc func) {
|
||||
}
|
||||
|
||||
void Core_NotifyLifecycle(CoreLifecycle stage) {
|
||||
AssertCurrentThreadName("EmuThread");
|
||||
|
||||
if (stage == CoreLifecycle::STARTING) {
|
||||
Core_ResetException();
|
||||
}
|
||||
|
||||
@@ -289,6 +289,8 @@ std::vector<std::string> ReadFromListFile(const std::string &listFilename) {
|
||||
char temp[2048]{};
|
||||
|
||||
if (listFilename == "-") {
|
||||
// If you get stuck here in the debugger, you accidentally passed '@-' on the command line, meaning we expect
|
||||
// a list of files on stdin.
|
||||
while (scanf("%2047s", temp) == 1)
|
||||
testFilenames.push_back(temp);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user