diff --git a/include/globals.h b/include/globals.h index a429d6e..24dae02 100644 --- a/include/globals.h +++ b/include/globals.h @@ -4,8 +4,7 @@ #include #include #include -#include extern char productPricesFileLocation[64]; // Dichiarazione extern -#endif \ No newline at end of file +#endif diff --git a/tests/makefile b/tests/makefile index 5cb06d0..4cac637 100644 --- a/tests/makefile +++ b/tests/makefile @@ -5,7 +5,7 @@ SRC_DIR = ../src TEST_EXE = test_runner TEST_SRCS = test.c -SRC_FILES = $(SRC_DIR)/logic.c +SRC_FILES = $(SRC_DIR)/logic.c $(SRC_DIR)/globals.c all: $(TEST_EXE) diff --git a/tests/test.c b/tests/test.c index 8a3c4d6..e046322 100644 --- a/tests/test.c +++ b/tests/test.c @@ -1,6 +1,7 @@ #include "logic.h" +#include "globals.h" int main(){ - + printf("%s", productPricesFileLocation); return 0; } diff --git a/tests/test_runner b/tests/test_runner index 079c8ee..89edac3 100755 Binary files a/tests/test_runner and b/tests/test_runner differ