mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
MinGW GCC adds .exe suffix
This commit is contained in:
parent
4014ac26d7
commit
e096cf2110
4 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue