ObjFW  Check-in [88fea306d2]

Overview
Comment:Fix OFSubprocessTests with disabled Unicode tables
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | objfwtest
Files: files | file ages | folders
SHA3-256: 88fea306d25e26f29ea97fd5d32d0c92a60265f8979b16dd3450cb5a4bd73b54
User & Date: js on 2024-02-15 20:20:16
Other Links: branch diff | manifest | tags
Context
2024-02-15
22:13
ObjFWTest: Implement output on Nintendo DS check-in: b93ad0661b user: js tags: objfwtest
20:20
Fix OFSubprocessTests with disabled Unicode tables check-in: 88fea306d2 user: js tags: objfwtest
00:11
ObjFWTest: Print unhandled exceptions check-in: 80465d3349 user: js tags: objfwtest
Changes

Modified new_tests/OFSubprocessTests.m from [bf448d2b80] to [c950e491df].

39
40
41
42
43
44
45

46



47
48
49
50
51
52

	subprocess = [OFSubprocess subprocessWithProgram: program
					     programName: program
					       arguments: arguments
					     environment: environment];

	[subprocess writeLine: @"Hellö world!"];

	OTAssertEqualObjects([subprocess readLine], @"HELLÖ WORLD!");




	[subprocess closeForWriting];

	OTAssertEqual([subprocess waitForTermination], 0);
}
@end







>

>
>
>






39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

	subprocess = [OFSubprocess subprocessWithProgram: program
					     programName: program
					       arguments: arguments
					     environment: environment];

	[subprocess writeLine: @"Hellö world!"];
#ifdef OF_HAVE_UNICODE_TABLES
	OTAssertEqualObjects([subprocess readLine], @"HELLÖ WORLD!");
#else
	OTAssertEqualObjects([subprocess readLine], @"HELLö WORLD!");
#endif

	[subprocess closeForWriting];

	OTAssertEqual([subprocess waitForTermination], 0);
}
@end