foxygit / fake-08-xbox360 Log in
commit 85df4c9cf21da76241cf91eefc0cff6083db94aa
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Mar 24 10:46:13 2021 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Mar 24 10:46:13 2021 -0600

    Fix tests
---
 test/endtoendtests.cpp | 20 +++++++++-----------
 test/stubhost.cpp      | 10 +++++-----
 2 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/test/endtoendtests.cpp b/test/endtoendtests.cpp
index 01692d0..1e1cad6 100644
--- a/test/endtoendtests.cpp
+++ b/test/endtoendtests.cpp
@@ -261,19 +261,17 @@ TEST_CASE("Loading and running carts") {

             CHECK(parsedCorrectly);
         }
-        /*
-        SUBCASE("too large int overflows") {
-            vm->UpdateAndDraw();
+        //SUBCASE("too large int overflows") {
+        //    vm->UpdateAndDraw();

-            bool parsedCorrectly = vm->ExecuteLua(
-                "function r7test()\n"
-                " return r7 == -32768\n"
-                "end\n",
-                "r7test");
+        //    bool parsedCorrectly = vm->ExecuteLua(
+        //        "function r7test()\n"
+        //        " return r7 == -32768\n"
+        //        "end\n",
+        //        "r7test");

-            CHECK(parsedCorrectly);
-        }
-        */
+        //    CHECK(parsedCorrectly);
+        ///}

         vm->CloseCart();
     }
diff --git a/test/stubhost.cpp b/test/stubhost.cpp
index 96d88e5..e8ff6e8 100644
--- a/test/stubhost.cpp
+++ b/test/stubhost.cpp
@@ -14,8 +14,8 @@ using namespace std;



-static uint8_t currKDown;
-static uint8_t currKHeld;
+static uint8_t stubCurrKDown;
+static uint8_t stubCurrKHeld;


 Host::Host() { }
@@ -39,12 +39,12 @@ void Host::changeStretch(){
 }

 void StubHost::stubInput(uint8_t kdown, uint8_t kheld) {
-    currKDown = kdown;
-    currKHeld = kheld;
+    stubCurrKDown = kdown;
+    stubCurrKHeld = kheld;
 }

 InputState_t Host::scanInput(){
-    return InputState_t {currKDown, currKHeld};
+    return InputState_t {stubCurrKDown, stubCurrKHeld};
 }

 bool Host::shouldQuit() {