tests: normalize "where" variable to include framework prefix and snippet name

This commit is contained in:
Daniel Kahn Gillmor
2021-03-01 21:08:00 -05:00
parent 5a1bd98979
commit 0bfb72b627
3 changed files with 3 additions and 3 deletions

View File

@@ -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");
}

View File

@@ -1,5 +1,5 @@
#include "snippets/include_headers.h"
#define where "direct"
#define where "run_SNIPPET_NAME"
int main() {
#include "snippets/SNIPPET_NAME.c"
}

View File

@@ -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"