gtestutils: Define TAP version clearly as defined value

As we do in tests
This commit is contained in:
Marco Trevisan (Treviño) 2023-01-20 15:11:19 +01:00
parent e6fbd2afa6
commit f5f09445b8

View File

@ -58,6 +58,7 @@
#include "glib-private.h"
#include "gutilsprivate.h"
#define TAP_VERSION G_STRINGIFY (13)
/* FIXME: Remove '#' prefix when we'll depend on a meson version supporting TAP 14
* See https://gitlab.gnome.org/GNOME/glib/-/issues/2885 */
#define TAP_SUBTEST_PREFIX "# " /* a 4-space indented line */
@ -1100,7 +1101,7 @@ g_test_log (GTestLogType lbit,
{
if (!is_subtest ())
{
g_test_tap_print (0, FALSE, "TAP version 13\n");
g_test_tap_print (0, FALSE, "TAP version " TAP_VERSION "\n");
}
else
{