summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-07-06 19:44:52 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2026-07-06 19:44:52 +0100
commit1d035cfa7b4b477c11267f15b2e6820466c004eb (patch)
treecf382c948b1da3f7425b0aa80f349c2319fa5bb5
parent4df453867abca0026f2e51f1cf7d927542c5c11c (diff)
downloadwebstat-1d035cfa7b4b477c11267f15b2e6820466c004eb.tar.bz2
webstat-1d035cfa7b4b477c11267f15b2e6820466c004eb.tar.xz
webstat-1d035cfa7b4b477c11267f15b2e6820466c004eb.zip
Fix compilation of test-ingestor with gcc-16webstat-0.7
-rw-r--r--test/test-ingest.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test-ingest.cpp b/test/test-ingest.cpp
index 021f925..cf5206f 100644
--- a/test/test-ingest.cpp
+++ b/test/test-ingest.cpp
@@ -367,9 +367,10 @@ BOOST_DATA_TEST_CASE(StoreLogLine,
LOGLINE1,
LOGLINE2,
}),
- line)
+ lineIn)
{
- ingestLogLines(DB::MockDatabase::openConnectionTo("webstat").get(), {std::string {line}});
+ const std::string line {lineIn};
+ ingestLogLines(DB::MockDatabase::openConnectionTo("webstat").get(), {&line, 1});
BOOST_CHECK_EQUAL(stats.linesRead, 0);
BOOST_CHECK_EQUAL(stats.linesParsed, 1);
BOOST_CHECK_EQUAL(stats.linesParseFailed, 0);
@@ -418,8 +419,8 @@ BOOST_AUTO_TEST_CASE(ParkLogLine)
BOOST_AUTO_TEST_CASE(ParkLogLineOnError, *boost::unit_test::depends_on("I/ParkLogLine"))
{
BOOST_REQUIRE(existingEntities->empty());
- constexpr std::string_view UNPARSABLE_LINE = "UNPARSABLE";
- BOOST_REQUIRE_NO_THROW(ingestLogLines(dbpool->get().get(), {std::string {UNPARSABLE_LINE}}));
+ static constexpr std::string UNPARSABLE_LINE = "UNPARSABLE";
+ BOOST_REQUIRE_NO_THROW(ingestLogLines(dbpool->get().get(), {&UNPARSABLE_LINE, 1}));
BOOST_CHECK_EQUAL(stats.linesParseFailed, 1);
BOOST_CHECK(existingEntities->empty());
}