mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Updated patch from Frith-MacDonald.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2704 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
02d2c9b813
commit
baf22d947f
11 changed files with 147 additions and 70 deletions
21
Testing/nstask.m
Normal file
21
Testing/nstask.m
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <Foundation/NSTask.h>
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
id pool;
|
||||
NSTask *task;
|
||||
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
task = [NSTask launchedTaskWithLaunchPath: @"/bin/ls"
|
||||
arguments: nil];
|
||||
[task waitUntilExit];
|
||||
printf("Exit status - %d\n", [task terminationStatus]);
|
||||
|
||||
[pool release];
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue