tests: normalize inclusions of tap/tap.h
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 29 Nov 2023 15:47:03 +0000 (10:47 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 1 Dec 2023 00:07:34 +0000 (19:07 -0500)
Use "tap/tap.h" instead of <tap/tap.h> everywhere.

Move the inclusion at the end of the inclusion list everywhere.  tap.h
defines macros with common names like `ok` and `fail`, which can clash
if defined before including other files.  Let's establish the practice
of including tap.h last.

Change-Id: Ic06f59d146390d6fe21a6ac229972df02ce8d762
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11461
Tested-by: jenkins <jenkins@lttng.org>
tests/bitfield/test-bitfield.c
tests/lib/test-bt-uuid.c
tests/lib/test-remove-destruction-listener-in-destruction-listener.c

index f0b44821e733de03ef4faf788cd088d5191a4050..017ebeb3ae40ec2c8561ae184a0b64caa043621e 100644 (file)
@@ -11,7 +11,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-#include <tap/tap.h>
+#include "tap/tap.h"
 
 unsigned int glob;
 
index 56136ac585813e3084893dbd9a2001bc67f9f071..5b0c3bed66b1a45e64d0fc337ee8c2350fe48cb1 100644 (file)
@@ -7,10 +7,10 @@
 #include <stdio.h>
 #include <string.h>
 
-#include <tap/tap.h>
-
 #include "common/uuid.h"
 
+#include "tap/tap.h"
+
 #define NR_TESTS 23
 
 static const char valid_str_1[] = "3d260c88-75ea-47b8-a7e2-d6077c0378d9";
index 7aae2f98b1db6f2707d2cc8403c9cab1c96b98b2..806e561388bb4cafd10534244a29861cce8612db 100644 (file)
 
 #include <babeltrace2/babeltrace.h>
 #include <common/assert.h>
-#include <tap/tap.h>
 #include <stdbool.h>
 
+#include "tap/tap.h"
+
 #define NR_TESTS 16
 
 static bt_listener_id trace_class_destroyed_1_id;
This page took 0.025935 seconds and 4 git commands to generate.