From 5758693b7d6ae3139278ebfddbf8d5eb4bf63e5d Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Fri, 19 Mar 2021 02:19:49 -0600 Subject: [PATCH] Minor pokes to the test files code. --- OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm | 2 +- OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm b/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm index 2f555f34c..cec3017f1 100644 --- a/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm +++ b/OSBindings/Mac/Clock SignalTests/68000ComparativeTests.mm @@ -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]; } diff --git a/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm b/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm index ad5dbb163..9c50a04a5 100644 --- a/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm +++ b/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm @@ -107,7 +107,7 @@ class EmuTOS: public ComparativeBusHandler { const std::vector 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(*roms[0], traceLocation.UTF8String); + _machine = std::make_unique(*roms[0], traceLocation.fileSystemRepresentation); _machine->run_for(HalfCycles(length)); }