summaryrefslogtreecommitdiff
path: root/test/_libtest.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-01 15:06:22 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-01 15:06:22 -0500
commit7e62881c8f6c1fb45b83037bedfc8fb5fae380cd (patch)
tree77bf5a7d8190de2dd5d390f15579f8ca5f606f31 /test/_libtest.c
parent0e6b1b24603948dab13f165f03a75e357e44d518 (diff)
downloadlibfaketime-7e62881c8f6c1fb45b83037bedfc8fb5fae380cd.tar.gz
Name "snippets" explicitly
Earlier, this code was conceived of to test a "function" specifically, but some future snippet could test multiple function calls, or a subset of a function call (e.g. snippets/syscall_clock_gettime.c already only tests one particular syscall diversion number). Normalizing on the name "snippet" should make it easier to understand the code going forward.
Diffstat (limited to 'test/_libtest.c')
-rw-r--r--test/_libtest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/_libtest.c b/test/_libtest.c
index 2fa0bc9..886e313 100644
--- a/test/_libtest.c
+++ b/test/_libtest.c
@@ -1,8 +1,8 @@
#include "snippets/include_headers.h"
#define where "library"
-void FUNC_NAME_as_needed() {
- printf(" called FUNC_NAME_as_needed() \n");
+void SNIPPET_NAME_as_needed() {
+ printf(" called SNIPPET_NAME_as_needed() \n");
}
-static __attribute__((constructor)) void init_FUNC_NAME() {
-#include "snippets/FUNC_NAME.c"
+static __attribute__((constructor)) void init_SNIPPET_NAME() {
+#include "snippets/SNIPPET_NAME.c"
}