ObjFW  Check-in [01199db504]

Overview
Comment:Fix tests on Nintendo consoles & PSP
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 01199db504035075179dd8b65d2cd7d07c8599a78b6baed3f05a4bf73d98cc26
User & Date: js on 2022-09-29 22:08:28
Other Links: manifest | tags
Context
2022-10-02
21:04
RuntimeARCTests: Limit Windows hack to x86_64 check-in: 8d5e62c432 user: js tags: trunk
2022-09-29
22:08
Fix tests on Nintendo consoles & PSP check-in: 01199db504 user: js tags: trunk
21:53
OFURI: Make query items an array of pairs check-in: bd6dd6dd00 user: js tags: trunk
Changes

Modified src/OFObject.m from [da1d529dc6] to [0477c3fb09].

269
270
271
272
273
274
275
276

277
278
279
280
281
282
283
269
270
271
272
273
274
275

276
277
278
279
280
281
282
283







-
+







		if ([exception respondsToSelector:
		    @selector(stackTraceSymbols)])
			stackTraceSymbols = [exception stackTraceSymbols];

		if (stackTraceSymbols.count != count)
			stackTraceSymbols = nil;

		fputs("\nBacktrace:\n", stderr);
		fputs("\nStack trace:\n", stderr);

		if (stackTraceSymbols != nil) {
			for (size_t i = 0; i < count; i++) {
				void *address = [[stackTraceAddresses
				    objectAtIndex: i] pointerValue];
				const char *symbol = [[stackTraceSymbols
				    objectAtIndex: i]

Modified tests/TestsAppDelegate.m from [4f43d25380] to [66423efb5a].

171
172
173
174
175
176
177
178
179
180
181
182
183


184




185
186
187
188
189
190
191
171
172
173
174
175
176
177



178
179
180
181
182

183
184
185
186
187
188
189
190
191
192
193







-
-
-



+
+
-
+
+
+
+







    defined(OF_NINTENDO_SWITCH)
	@try {
		return OFApplicationMain(&argc, &argv,
		    [[TestsAppDelegate alloc] init]);
	} @catch (id e) {
		OFString *string = [OFString stringWithFormat:
		    @"\nRuntime error: Unhandled exception:\n%@\n", e];
		OFString *backtrace = [OFString stringWithFormat:
		    @"\nBacktrace:\n  %@\n\n",
		    [[e backtrace] componentsJoinedByString: @"\n  "]];

		[OFStdOut setForegroundColor: [OFColor red]];
		[OFStdOut writeString: string];

		if ([e stackTraceAddresses] != nil)
		[OFStdOut writeString: backtrace];
			[OFStdOut writeString: @"\nStack trace:\n"];

		for (OFValue *address in [e stackTraceAddresses])
			[OFStdOut writeFormat: @"  %p\n", address.pointerValue];

# if defined(OF_WII)
		[OFStdOut reset];
		[OFStdOut writeString: @"Press home button to exit!"];

		for (;;) {
			WPAD_ScanPads();