summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-08 15:27:03 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-11 13:22:31 +0300
commit7a43d55ab8640f721655143712f9baec399b583b (patch)
tree394d400a7cf2a6ca29418f573dbe9ecd941e803f /tests
parente50bbb11fa14ef3587a0ab9f6af02749bb31dda8 (diff)
fs-tests: integck: include the common mtd-utils header
Include the commong mtd-utils "common.h" header in integck test to make it possible to use shared macros. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fs-tests/integrity/Makefile4
-rw-r--r--tests/fs-tests/integrity/integck.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/fs-tests/integrity/Makefile b/tests/fs-tests/integrity/Makefile
index a35f4d0..364a732 100644
--- a/tests/fs-tests/integrity/Makefile
+++ b/tests/fs-tests/integrity/Makefile
@@ -3,7 +3,9 @@ ifeq ($(origin CC),default)
CC = gcc
endif
-CFLAGS := $(CFLAGS) -Wall -g -O2 -I../lib
+COMMON_HEADERS_DIR := ../../../include
+
+CFLAGS := $(CFLAGS) -Wall -g -O2 -I../lib -I$(COMMON_HEADERS_DIR)
LDFLAGS := $(LDFLAGS)
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 155b619..ed32b52 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -30,9 +30,11 @@
#include <limits.h>
#include <dirent.h>
#include <sys/mman.h>
-
#include "tests.h"
+#define PROGRAM_NAME "integck"
+#include "common.h"
+
/* Structures to store data written to the test file system,
so that we can check whether the file system is correct. */