From 0bfb72b627dbc542bf1c0beecced5d1079c56432 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 1 Mar 2021 21:08:00 -0500 Subject: [PATCH] tests: normalize "where" variable to include framework prefix and snippet name --- test/_libtest.c | 2 +- test/_run_test.c | 2 +- test/_use_lib_test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/_libtest.c b/test/_libtest.c index 886e313..6346e78 100644 --- a/test/_libtest.c +++ b/test/_libtest.c @@ -1,5 +1,5 @@ #include "snippets/include_headers.h" -#define where "library" +#define where "libSNIPPET_NAME" void SNIPPET_NAME_as_needed() { printf(" called SNIPPET_NAME_as_needed() \n"); } diff --git a/test/_run_test.c b/test/_run_test.c index 7cbaffb..41dda81 100644 --- a/test/_run_test.c +++ b/test/_run_test.c @@ -1,5 +1,5 @@ #include "snippets/include_headers.h" -#define where "direct" +#define where "run_SNIPPET_NAME" int main() { #include "snippets/SNIPPET_NAME.c" } diff --git a/test/_use_lib_test.c b/test/_use_lib_test.c index 5a21d17..1c392fe 100644 --- a/test/_use_lib_test.c +++ b/test/_use_lib_test.c @@ -1,6 +1,6 @@ #include "snippets/include_headers.h" extern void SNIPPET_NAME_as_needed(); -#define where "program" +#define where "use_lib_SNIPPET_NAME" int main() { SNIPPET_NAME_as_needed(); #include "snippets/SNIPPET_NAME.c"