diff options
Diffstat (limited to 'pkg/codesearch/testdata')
| -rw-r--r-- | pkg/codesearch/testdata/source0.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/source0.c b/pkg/codesearch/testdata/source0.c index 9482908c9..4d90dddbf 100644 --- a/pkg/codesearch/testdata/source0.c +++ b/pkg/codesearch/testdata/source0.c @@ -44,3 +44,10 @@ int field_refs(struct some_struct* p, union some_union* u) u->s.x = 2; return p->x; } + +// compile_commands.json we create for tests defines KBUILD_BASENAME. +// If it's not defined, compile_commands.json is not properly loaded. +// This is supposed to fail builds, if that happens. +#ifndef KBUILD_BASENAME +#error "compile_commands.json is not loaded" +#endif |
