From d472f2e9bba96272463987ae4be1750936938998 Mon Sep 17 00:00:00 2001 From: Andreas Lokko Date: Wed, 13 Mar 2024 12:47:53 +0200 Subject: [PATCH] ut.hpp: Corrected XML formatting issue in print_junit_summary Previously, an empty element tag was erroneously used in place of an opening XML tag within the print_junit_summary function. This resulted in the generation of invalid XML output. The issue has been resolved by replacing the empty element tag with the appropriate opening XML tag, ensuring the XML output adheres to the expected format. --- include/boost/ut.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/ut.hpp b/include/boost/ut.hpp index 941dffcb..76071e5d 100644 --- a/include/boost/ut.hpp +++ b/include/boost/ut.hpp @@ -1975,7 +1975,7 @@ class reporter_junit { if (result.report_string.empty() && result.nested_tests->empty()) { stream << " />\n"; } else if (!result.nested_tests->empty()) { - stream << " />\n"; + stream << " >\n"; print_result(stream, suite_name, indent + " ", result); stream << indent << "\n"; } else if (!result.report_string.empty()) {