From f777b04eb89acbf372689e9ab37a64eef1acc1b0 Mon Sep 17 00:00:00 2001 From: ado Date: Wed, 1 Feb 2023 22:45:50 +0100 Subject: [PATCH] Fix failing mingw unit test --- test/test_parser.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test/test_parser.cpp b/test/test_parser.cpp index 22de334..9c8db9a 100644 --- a/test/test_parser.cpp +++ b/test/test_parser.cpp @@ -610,8 +610,6 @@ struct xyz { }; TEST_CASE("parser test the moving of parsed values") { - size_t move_called_one_col; - { unique_file_name f; { @@ -621,8 +619,7 @@ TEST_CASE("parser test the moving of parsed values") { ss::parser p{f.name, ","}; auto x = p.get_next(); - CHECK_LT(move_called, 3); - move_called_one_col = move_called; + CHECK_LE(move_called, 1); move_called = 0; } @@ -636,21 +633,21 @@ TEST_CASE("parser test the moving of parsed values") { ss::parser p{f.name, ","}; auto x = p.get_next(); - CHECK_LE(move_called, 3 * move_called_one_col); + CHECK_LE(move_called, 3); move_called = 0; } { ss::parser p{f.name, ","}; auto x = p.get_object(); - CHECK_LE(move_called, 6 * move_called_one_col); + CHECK_LE(move_called, 6); move_called = 0; } { ss::parser p{f.name, ","}; auto x = p.get_next(); - CHECK_LE(move_called, 6 * move_called_one_col); + CHECK_LE(move_called, 6); move_called = 0; } }