From 2c5ff9ada094cb9641e786409954b15202ce231b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 31 Mar 2019 22:27:57 -0400 Subject: [PATCH] Switches to running the real TOS, at least temporarily, and enables better testing. --- .../xcshareddata/xcschemes/Clock Signal.xcscheme | 2 ++ OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme index ffcbbd1c6..95b31a9ca 100644 --- a/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme +++ b/OSBindings/Mac/Clock Signal.xcodeproj/xcshareddata/xcschemes/Clock Signal.xcscheme @@ -26,6 +26,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + enableAddressSanitizer = "YES" + enableUBSanitizer = "YES" codeCoverageEnabled = "YES" shouldUseLaunchSchemeArgsEnv = "YES"> diff --git a/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm b/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm index 95fb23c2d..80fdc95a4 100644 --- a/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm +++ b/OSBindings/Mac/Clock SignalTests/EmuTOSTests.mm @@ -84,7 +84,7 @@ class EmuTOS: public CPU::MC68000::BusHandler { - (void)setUp { // Put setup code here. This method is called before the invocation of each test method in the class. - const auto roms = CSROMFetcher()("AtariST", {"etos192uk.img"}); + const auto roms = CSROMFetcher()("AtariST", {"tos100.img"}); _machine.reset(new EmuTOS(*roms[0])); } @@ -95,7 +95,7 @@ class EmuTOS: public CPU::MC68000::BusHandler { - (void)testExample { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. - _machine->run_for(HalfCycles(400)); + _machine->run_for(HalfCycles(4000)); } @end