mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
Minor pokes to the test files code.
This commit is contained in:
parent
39a105b48a
commit
5758693b7d
@ -43,7 +43,7 @@
|
||||
// Issue each test file.
|
||||
for(NSURL *url in tests) {
|
||||
// Compare against a file set if one has been supplied.
|
||||
if(_fileSet && ![_fileSet containsObject:[[url path] lastPathComponent]]) continue;
|
||||
if(_fileSet && ![_fileSet containsObject:[url lastPathComponent]]) continue;
|
||||
NSLog(@"Testing %@", url);
|
||||
[self testJSONAtURL:url];
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ class EmuTOS: public ComparativeBusHandler {
|
||||
const std::vector<ROMMachine::ROM> rom_names = {{"AtariST", "", image.UTF8String, 0, 0 }};
|
||||
const auto roms = CSROMFetcher()(rom_names);
|
||||
NSString *const traceLocation = [[NSBundle bundleForClass:[self class]] pathForResource:trace ofType:@"trace.txt.gz"];
|
||||
_machine = std::make_unique<EmuTOS>(*roms[0], traceLocation.UTF8String);
|
||||
_machine = std::make_unique<EmuTOS>(*roms[0], traceLocation.fileSystemRepresentation);
|
||||
_machine->run_for(HalfCycles(length));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user