tests/test_gv_find_me.c
raw| 1 | /// @file |
| 2 | /// @brief Supporting file for test_c_utils.py::test_gv_find_me |
| 3 | |
| 4 | #define NO_CONFIG // suppress include of config.h in ../lib/util/gv_find_me.c |
| 5 | |
| 6 | #include <assert.h> |
| 7 | #include <stdio.h> |
| 8 | #include <stdlib.h> |
| 9 | |
| 10 | // include the C source to get the implementation |
| 11 | #include <util/gv_find_me.c> |
| 12 | |
| 13 | int main(void) { |
| 14 | char *const me = gv_find_me(); |
| 15 | assert(me != NULL); |
| 16 | (void)puts(me); |
| 17 | free(me); |
| 18 | return 0; |
| 19 | } |