aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/libqos/qgraph_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qtest/libqos/qgraph_internal.h')
-rw-r--r--tests/qtest/libqos/qgraph_internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/qtest/libqos/qgraph_internal.h b/tests/qtest/libqos/qgraph_internal.h
index 974985dce9..c0025f5ab9 100644
--- a/tests/qtest/libqos/qgraph_internal.h
+++ b/tests/qtest/libqos/qgraph_internal.h
@@ -255,4 +255,15 @@ void qos_delete_cmd_line(const char *name);
*/
void qos_graph_node_set_availability(const char *node, bool av);
+/*
+ * Prepends a '#' character in front for not breaking TAP output format.
+ */
+#define qos_printf(...) printf("# " __VA_ARGS__)
+
+/*
+ * Intended for printing something literally, i.e. for appending text as is
+ * to a line already been started by qos_printf() before.
+ */
+#define qos_printf_literal printf
+
#endif