mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Merge pull request #884 from MaddTheSane/master
Minor pokes to the test files code.
This commit is contained in:
commit
b3fc64d4f2
@ -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