19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
static OFString *const module = @"OFSubprocess";
@implementation TestsAppDelegate (OFSubprocessTests)
- (void)subprocessTests
{
void *pool = objc_autoreleasePoolPush();
OFString *program = [@"subprocess" stringByAppendingPathComponent:
@"subprocess" @PROG_SUFFIX];
OFArray *arguments = [OFArray arrayWithObjects: @"tést", @"123", nil];
OFMutableDictionary *environment =
[[[OFApplication environment] mutableCopy] autorelease];
OFSubprocess *subprocess;
[environment setObject: @"yés" forKey: @"tëst"];
|
>
>
>
>
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
static OFString *const module = @"OFSubprocess";
@implementation TestsAppDelegate (OFSubprocessTests)
- (void)subprocessTests
{
void *pool = objc_autoreleasePoolPush();
#ifdef OF_HAVE_FILES
OFString *program = [@"subprocess" stringByAppendingPathComponent:
@"subprocess" @PROG_SUFFIX];
#else
OFString *program = @"subprocess/subprocess" @PROG_SUFFIX;
#endif
OFArray *arguments = [OFArray arrayWithObjects: @"tést", @"123", nil];
OFMutableDictionary *environment =
[[[OFApplication environment] mutableCopy] autorelease];
OFSubprocess *subprocess;
[environment setObject: @"yés" forKey: @"tëst"];
|