Skip to content

Commit

Permalink
test: Fix UMOCKDEV_DEBUG with test-ioctl-tree
Browse files Browse the repository at this point in the history
The `debug_categories` global was erroneously declared twice, and
forgotten to get linked to the test binary.
  • Loading branch information
martinpitt committed Aug 22, 2018
1 parent 049a3c8 commit 3732b19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile.am
Expand Up @@ -261,6 +261,8 @@ tests_test_umockdev_LDADD = \
tests_test_ioctl_tree_SOURCES = \
src/ioctl_tree.c \
tests/test-ioctl-tree.c \
src/debug.h \
src/debug.c \
$(NULL)

tests_test_ioctl_tree_CFLAGS = \
Expand Down
2 changes: 1 addition & 1 deletion src/debug.h
Expand Up @@ -13,7 +13,7 @@
#define DBG_IOCTL (1 << 3)
#define DBG_IOCTL_TREE (1 << 4)

unsigned debug_categories;
extern unsigned debug_categories;

void init_debug(void) __attribute__((constructor));

Expand Down

0 comments on commit 3732b19

Please sign in to comment.