gtestutils: Use TAP 14 syntax by default

The issue of meson 60 have been resolved for some time now, so we can
just use newer TAP syntax safely.

Revert "gtestutils: Use TAP 13 comments syntax for subtests"
This reverts commit e8725407bcd35c1fa8fed92250edf080d5542b3c.

Closes: #2885
This commit is contained in:
Marco Trevisan (Treviño) 2024-08-02 09:26:34 +02:00
parent 474dbd91f7
commit 05d81f03f6
2 changed files with 4 additions and 6 deletions

View File

@ -65,10 +65,8 @@
#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 */
#define TAP_VERSION G_STRINGIFY (14)
#define TAP_SUBTEST_PREFIX " " /* a 4-space indented line */
/**
* g_test_initialized:

View File

@ -35,8 +35,8 @@
#include <stdlib.h>
#include <string.h>
#define TAP_VERSION G_STRINGIFY (13)
#define TAP_SUBTEST_PREFIX "# "
#define TAP_VERSION G_STRINGIFY (14)
#define TAP_SUBTEST_PREFIX " "
/* test assertion variants */
static void