Skip to content

Commit

Permalink
fix(test) do not including anything in test files when not running tests
Browse files Browse the repository at this point in the history
kisvegabor committed Jul 1, 2021
1 parent 77cedfa commit 9043860
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/src/lv_test_indev.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#if LV_BUILD_TEST
#include "../lvgl.h"
#include <stdio.h>
#include <stdlib.h>

#if LV_BUILD_TEST
#include <sys/time.h>
#include "lv_test_indev.h"
#include "lv_test_init.h"
2 changes: 1 addition & 1 deletion tests/src/lv_test_main.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#if LV_BUILD_TEST && !defined(LV_BUILD_TEST_NO_MAIN)
#include "../lvgl.h"
#include <stdio.h>
#include <stdlib.h>

#if LV_BUILD_TEST && !defined(LV_BUILD_TEST_NO_MAIN)
#include <sys/time.h>
#include "lv_test_init.h"

2 changes: 1 addition & 1 deletion tests/src/test_cases/_test_template.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../lvgl.h"
#if LV_BUILD_TEST
#include "../lvgl.h"

#include "unity/unity.h"

0 comments on commit 9043860

Please sign in to comment.