Fix for latest jlog

Also remove having to include event directly as it gets passed up from jlog.
This commit is contained in:
2024-10-10 12:08:25 -04:00
parent e3b69e7aa9
commit 76a384b892
3 changed files with 1 additions and 8 deletions

View File

@@ -24,12 +24,6 @@ include(cmake/CPM.cmake)
file(GLOB_RECURSE jtest_HEADERS "include/jtest/*.h" "include/jtest/*.hpp")
file(GLOB_RECURSE jtest_SRC "src/jtest/*.c" "src/jtest/*.cpp")
# TODO: Fix Event needing to be included too, it should be an automatically-managed depencency of jlog!!!
CPMAddPackage(
NAME Event
URL https://git.redacted.cc/josh/Event/archive/Release-10.zip
)
CPMAddPackage(
NAME jlog
URL https://git.redacted.cc/josh/jlog/archive/Prerelease-16.zip

View File

@@ -1,7 +1,6 @@
#pragma once
#include <Event.h>
#include <EventConnection.h>
#include <jtest/Test.hpp>
#include <jtest/UnitLogger.hpp>

View File

@@ -21,7 +21,7 @@ namespace jtest {
// TODO: output "Running Test Unit <name> with <N> tests.
Log(std::format("Running test unit with {} tests...", tests_total));
for (event_ptr &connection_ptr: this->listeners) {
for (EventPtr &connection_ptr: this->listeners) {
//ulog(std::format("Running Test <{}> [{}/{}]", connection_ptr->callback.Name(), tcnt, this->listeners.size()));
bool this_test_passed = false;