ObjFW  Check-in [b29bfe6485]

Overview
Comment:Make GCC happy again
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b29bfe6485d64f651c76333f22448b5fe809d9c42cb1073360fdabefc8fed27b
User & Date: js on 2022-06-17 20:04:20
Other Links: manifest | tags
Context
2022-06-18
01:07
OFPlugin: Fix accidentally removed = check-in: c96f67f694 user: js tags: trunk
2022-06-17
20:04
Make GCC happy again check-in: b29bfe6485 user: js tags: trunk
17:12
OFPlugin: Completely redesign API check-in: a74bff96c4 user: js tags: trunk
Changes

Modified tests/OFPluginTests.m from [d69a23db27] to [bb55705657].

37
38
39
40
41
42
43
44

45
46
47
48
49
50
51
52
53
54
55
	TestPlugin *test;

	TEST(@"+[pathForName:]", (path = [OFPlugin pathForName: pluginName]))

	TEST(@"+[pluginWithPath:]", (plugin = [OFPlugin pluginWithPath: path]))

	TEST(@"-[addressForSymbol:]",
	    (class = (Class (*)(void))[plugin addressForSymbol: @"class"]))


	test = [[class() alloc] init];
	@try {
		TEST(@"TestPlugin's -[test:]", [test test: 1234] == 2468)
	} @finally {
		[test release];
	}

	objc_autoreleasePoolPop(pool);
}
@end







|
>











37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
	TestPlugin *test;

	TEST(@"+[pathForName:]", (path = [OFPlugin pathForName: pluginName]))

	TEST(@"+[pluginWithPath:]", (plugin = [OFPlugin pluginWithPath: path]))

	TEST(@"-[addressForSymbol:]",
	    (class = (Class (*)(void))(uintptr_t)
	    [plugin addressForSymbol: @"class"]))

	test = [[class() alloc] init];
	@try {
		TEST(@"TestPlugin's -[test:]", [test test: 1234] == 2468)
	} @finally {
		[test release];
	}

	objc_autoreleasePoolPop(pool);
}
@end