summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-01 21:08:00 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-01 21:08:00 -0500
commit0bfb72b627dbc542bf1c0beecced5d1079c56432 (patch)
tree2de1b30927b8e93fa7ef60108779727c93018592 /test
parent5a1bd98979a4b6a0ffd00ce268827e35a496273f (diff)
downloadlibfaketime-0bfb72b627dbc542bf1c0beecced5d1079c56432.tar.gz
tests: normalize "where" variable to include framework prefix and snippet name
Diffstat (limited to 'test')
-rw-r--r--test/_libtest.c2
-rw-r--r--test/_run_test.c2
-rw-r--r--test/_use_lib_test.c2
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"