MinGW GCC adds .exe suffix

This commit is contained in:
hmelder 2024-09-09 17:06:40 +02:00
parent 4014ac26d7
commit e096cf2110
4 changed files with 7 additions and 9 deletions

View file

@ -20,9 +20,9 @@ int main()
id pth2;
BOOL yes;
/* Windows MSVC adds the '.exe' suffix to executables
/* Windows Compiler add the '.exe' suffix to executables
*/
#if defined(_MSC_VER)
#if defined(_WIN32)
testecho = @"testecho.exe";
testcat = @"testcat.exe";
#else

View file

@ -26,9 +26,7 @@ int main()
NSFileHandle *outHandle;
NSData *data = nil;
/* Windows MSVC adds the '.exe' suffix to executables
*/
#if defined(_MSC_VER)
#if defined(_WIN32)
testecho = @"testecho.exe";
testcat = @"testcat.exe";
processgroup = @"processgroup.exe";

View file

@ -36,9 +36,7 @@ static BOOL taskTerminationNotificationReceived;
NSString *testecho;
BOOL earlyTermination = NO;
/* Windows MSVC adds the '.exe' suffix to executables
*/
#if defined(_MSC_VER)
#if defined(_WIN32)
testecho = @"testecho.exe";
testsleep = @"testsleep.exe";
#else

View file

@ -140,9 +140,11 @@ int main(void)
NSDate *start = [NSDate date];
[expectation lock];
while (![expectation isDone] && [start timeIntervalSinceNow] > -5.0f)
int attempts = 3;
while (![expectation isDone] && [start timeIntervalSinceNow] > -5.0f && attempts > 0)
{
[expectation waitUntilDate: [NSDate dateWithTimeIntervalSinceNow: 0.5f]];
attempts -= 1;
}
PASS([expectation isDone], "Notification for thread exit was sent");
[expectation unlock];