From 787aba1e19ca5ce97cd8b597662f54b6dc7b19c3 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 29 Apr 2024 10:45:54 -0400 Subject: [PATCH] xo-indentlog: utest: ++ behavior tracking for gcc 13.2 --- utest/quoted.test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utest/quoted.test.cpp b/utest/quoted.test.cpp index dff5c751..32e641bb 100644 --- a/utest/quoted.test.cpp +++ b/utest/quoted.test.cpp @@ -53,7 +53,11 @@ namespace ut { #endif quoted_tcase("misakte\rfix", true, "\"misakte\\rfix\""), +#if __GNUC__ >= 13 && __GNUC_MINOR >= 2 quoted_tcase("misakte\rfix", false, "\"misakte\rfix\""), +#else + quoted_tcase("misakte\rfix", false, "\"misakte\\rfix\""), +#endif quoted_tcase("\"oh!\", she said", true, "\"\\\"oh!\\\", she said\""), quoted_tcase("\"oh!\", she said", false, "\"\\\"oh!\\\", she said\""), @@ -66,6 +70,10 @@ namespace ut { for (std::uint32_t i_tc = 0, z_tc = s_quoted_tcase_v.size(); i_tc < z_tc; ++i_tc) { quoted_tcase const & tc = s_quoted_tcase_v[i_tc]; + /* NOTE: don't use tag()/xtag() here, + * since implementation relies on the inserter we are testing + */ + INFO(tostr("i_tc=", i_tc, " unq_flag=", tc.unq_flag_)); INFO("tc.x_ ----------------"); INFO(tostr("[", tc.x_, "]"));