ObjFW  Check-in [2431754f9f]

Overview
Comment:Try all profiles in game controller tests
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2431754f9fb309d142fb958bed3e116f0c9a8ffe529944d05c3d5238fc5b79f6
User & Date: js on 2024-06-09 12:39:29
Other Links: manifest | tags
Context
2024-06-09
14:34
ObjFWHID: Add gamepad for Nintendo DS check-in: 5c70eba805 user: js tags: trunk
12:39
Try all profiles in game controller tests check-in: 2431754f9f user: js tags: trunk
11:56
GitHub Actions: Use fedora, not fedora:41 check-in: c418c97bdd user: js tags: trunk
Changes

Modified tests/gamecontroller/GameControllerTests.m from [7ea7d25a9a] to [fdb8a65717].

195
196
197
198
199
200
201
202
203
204







205
206
207
208
209
210
211
195
196
197
198
199
200
201



202
203
204
205
206
207
208
209
210
211
212
213
214
215







-
-
-
+
+
+
+
+
+
+








			[OFStdOut clear];
		}

		[OFStdOut setCursorPosition: OFMakePoint(0, 0)];

		for (OHGameController *controller in _controllers) {
			OHGameControllerProfile *profile =
			    (controller.gamepad != nil
			    ? controller.gamepad : controller.rawProfile);
			OHGameControllerProfile *profile;

			profile = controller.extendedGamepad;
			if (profile == nil)
				profile = controller.gamepad;
			if (profile == nil)
				profile = controller.rawProfile;

			[OFStdOut setForegroundColor: [OFColor green]];
			[OFStdOut writeLine: controller.description];

			@try {
				[controller retrieveState];
			} @catch (OFReadFailedException *e) {