commit 244114c1264f96a721b9d70f2d34cd6aec9b67a0
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Wed Mar 5 08:55:43 2025 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Wed Mar 5 08:55:43 2025 -0700
clean up some debug logs
---
test/cartloadingtest.cpp | 10 ++++++----
test/endtoendtests.cpp | 2 --
test/vmtests.cpp | 1 -
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/test/cartloadingtest.cpp b/test/cartloadingtest.cpp
index 05645d0..05595bc 100644
--- a/test/cartloadingtest.cpp
+++ b/test/cartloadingtest.cpp
@@ -630,10 +630,12 @@ TEST_CASE("Loading and running carts") {
}
}
- printf("\n");
- printf("ERRORS:\n");
- for (int i = 0; i < errors.size(); i++) {
- printf("%s\n", errors[i].c_str());
+ if (errors.size() > 0) {
+ printf("\n");
+ printf("ERRORS:\n");
+ for (int i = 0; i < errors.size(); i++) {
+ printf("%s\n", errors[i].c_str());
+ }
}
//TODO: compile known errors, make sure none are introduced
diff --git a/test/endtoendtests.cpp b/test/endtoendtests.cpp
index 24a2600..c3bf459 100644
--- a/test/endtoendtests.cpp
+++ b/test/endtoendtests.cpp
@@ -150,8 +150,6 @@ TEST_CASE("Loading and running carts") {
//need to pass this func to the sandbox, not the global state
bool globalVarLoaded = vm->ExecuteLua(
"function globalVarTest()\n"
- " printh('globalVarTest')\n"
- " printh('a: '..a)\n"
" return a == 1\n"
"end\n",
"globalVarTest");
diff --git a/test/vmtests.cpp b/test/vmtests.cpp
index c583b4e..9bf816a 100644
--- a/test/vmtests.cpp
+++ b/test/vmtests.cpp
@@ -433,7 +433,6 @@ TEST_CASE("Vm memory functions") {
//30 fps game loop requires 1 step to update and update buttons, and another to draw
SUBCASE("initial state"){
- printf("Checking initial state\n");
bool btnbits = vm->ExecuteLua(
"function btnbitsinitialtest()\n"
" return btnbits == 0\n"