Skip to content

Commit 90383fb

Browse files
committed
Add test that the C API headers compile.
1 parent e0cabbf commit 90383fb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/BuildCAPI.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#include <c/GraphQLAst.h>
2+
#include <c/GraphQLAstVisitor.h>
3+
4+
/* This file is just here to make sure our C API builds OK. */

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ INCLUDE_DIRECTORIES(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
66

77
FILE(COPY valgrind.supp DESTINATION .)
88

9-
ADD_EXECUTABLE(runTests ParserTests.cpp)
9+
ADD_EXECUTABLE(runTests ParserTests.cpp BuildCAPI.c)
1010

1111
TARGET_LINK_LIBRARIES(runTests gtest gtest_main)
1212

0 commit comments

Comments
 (0)