ObjFW  Check-in [13025565d3]

Overview
Comment:Fix testing the wrong OFKernelEventObserver
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.90
Files: files | file ages | folders
SHA3-256: 13025565d3d0b6d1c54384b4398e445b5c1f33003b33cd5ec1b005999aae9dfc
User & Date: js on 2017-10-01 21:13:06
Other Links: branch diff | manifest | tags
Context
2017-10-07
10:46
OFThread: Fix setting the name on the wrong thread check-in: 1d0042a040 user: js tags: 0.90
2017-10-01
21:13
Fix testing the wrong OFKernelEventObserver check-in: 13025565d3 user: js tags: 0.90
14:14
Backport nullability fixes from master check-in: f37b373a95 user: js tags: 0.90
Changes

Modified tests/OFKernelEventObserverTests.m from [a33e059e26] to [6f6df4db2e].

206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	ObserverTest *test;

	module = [class className];
	test = [[[ObserverTest alloc]
	    initWithTestsAppDelegate: self] autorelease];

	TEST(@"+[observer]",
	    (test->_observer = [OFKernelEventObserver observer]))
	[test->_observer setDelegate: test];

	TEST(@"-[addObjectForReading:]",
	    R([test->_observer addObjectForReading: test->_server]))

	[test run];
	_fails += test->_fails;







|
<







206
207
208
209
210
211
212
213

214
215
216
217
218
219
220
	OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
	ObserverTest *test;

	module = [class className];
	test = [[[ObserverTest alloc]
	    initWithTestsAppDelegate: self] autorelease];

	TEST(@"+[observer]", (test->_observer = [class observer]))

	[test->_observer setDelegate: test];

	TEST(@"-[addObjectForReading:]",
	    R([test->_observer addObjectForReading: test->_server]))

	[test run];
	_fails += test->_fails;