Differences From Artifact [0707701acb]:
- File
tests/TestsAppDelegate.m
— part of check-in
[d0ad47358c]
at
2020-05-28 23:59:05
on branch trunk
— tests: Add the same libctru id workaround
This adds the same workaround as in [f4ba103dc03a4933], but for tests. (user: js, size: 9857) [annotate] [blame] [check-ins using]
To Artifact [3cf677c3a1]:
- File tests/TestsAppDelegate.m — part of check-in [ba32166987] at 2020-07-04 21:19:16 on branch trunk — tests: Use \r instead of setting cursorColumn = 0 (user: js, size: 9805) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
211 212 213 214 215 216 217 |
[of_stdout writeFormat: @"[%@] %@: ", module, test];
}
- (void)outputSuccess: (OFString *)test
inModule: (OFString *)module
{
if (of_stdout.hasTerminal) {
| < | < | | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
[of_stdout writeFormat: @"[%@] %@: ", module, test];
}
- (void)outputSuccess: (OFString *)test
inModule: (OFString *)module
{
if (of_stdout.hasTerminal) {
of_stdout.foregroundColor = [OFColor lime];
[of_stdout eraseLine];
[of_stdout writeFormat: @"\r[%@] %@: ok\n", module, test];
} else
[of_stdout writeLine: @"ok"];
}
- (void)outputFailure: (OFString *)test
inModule: (OFString *)module
{
if (of_stdout.hasTerminal) {
of_stdout.foregroundColor = [OFColor red];
[of_stdout eraseLine];
[of_stdout writeFormat: @"\r[%@] %@: failed\n", module, test];
#ifdef OF_WII
[of_stdout reset];
[of_stdout writeLine: @"Press A to continue!"];
for (;;) {
WPAD_ScanPads();
|
| ︙ | ︙ | |||
283 284 285 286 287 288 289 | if (hidKeysDown() & KEY_A) break; gspWaitForVBlank(); } #endif | | | 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | if (hidKeysDown() & KEY_A) break; gspWaitForVBlank(); } #endif [of_stdout writeString: @"\r"]; [of_stdout reset]; [of_stdout eraseLine]; } else [of_stdout writeLine: @"failed"]; } - (void)applicationDidFinishLaunching |
| ︙ | ︙ |