summaryrefslogtreecommitdiffstats
path: root/test/parser/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser/utils.c')
-rw-r--r--test/parser/utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parser/utils.c b/test/parser/utils.c
index 68fc3de..9a6b2e1 100644
--- a/test/parser/utils.c
+++ b/test/parser/utils.c
@@ -282,3 +282,10 @@ void __check_unresolved_resource(struct resource *res,
if (res->resolved)
errx(EXIT_FAILURE, "%s:%d: Resource is resolved", file, line);
}
+
+void __check_not_present_resource(struct resource *res,
+ const char *file, int line)
+{
+ if (res)
+ errx(EXIT_FAILURE, "%s:%d: Resource present", file, line);
+}
OpenPOWER on IntegriCloud