mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
Merge pull request #1712 from LuisBiceps/test/libc-guest-errors-thread-errno
test(libc): reset errno after the worker thread in guest_errors
This commit is contained in:
@@ -15,10 +15,12 @@ int main() {
|
||||
Require(*__error_nid_postfix() == 13);
|
||||
Require(std::strcmp(strerror_nid_postfix(78), "Function not implemented") == 0);
|
||||
char* parent = strerror_nid_postfix(22);
|
||||
Require(*__error_nid_postfix() == 13);
|
||||
std::thread worker([] {
|
||||
Require(std::strcmp(strerror_nid_postfix(45), "Operation not supported") == 0);
|
||||
});
|
||||
worker.join();
|
||||
*__error_nid_postfix() = 13;
|
||||
Require(std::strcmp(parent, "Invalid argument") == 0);
|
||||
char buffer[128];
|
||||
for (int error = 0; error <= 96; ++error) {
|
||||
|
||||
Reference in New Issue
Block a user