ObjFW  Check-in [d3ef45da74]

Overview
Comment:Fix OFSubprocessTests with --disable-files
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d3ef45da7491054a5ad4baedb72f2646f4e222bf9c2f779215847feda4874cee
User & Date: js on 2024-01-21 10:26:42
Other Links: manifest | tags
Context
2024-01-21
10:52
Update ChangeLog for 1.0.7 check-in: 9cbb05a4d3 user: js tags: trunk
10:39
Add tests for OFSubprocess check-in: 929a2d807a user: js tags: 1.0
10:26
Fix OFSubprocessTests with --disable-files check-in: d3ef45da74 user: js tags: trunk
10:23
OFSubprocess: Fix compilation on macOS check-in: 4f935e7e9b user: js tags: trunk
Changes

Modified tests/OFSubprocessTests.m from [efdcfa2805] to [846e8d88e2].

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"];