]> www.infradead.org Git - mtd-utils.git/commitdiff
fs-tests: integck: include the common mtd-utils header
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 8 Apr 2011 12:27:03 +0000 (15:27 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 11 Apr 2011 10:22:31 +0000 (13:22 +0300)
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>
tests/fs-tests/integrity/Makefile
tests/fs-tests/integrity/integck.c

index a35f4d0d75c2f08acdd374f8804ad7c72dffb4a5..364a732bd1ad3a14523a53256cd19d25d53c9acb 100644 (file)
@@ -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)
 
index 155b619ab374fa7bc28cbc2f5ea0480ad5503b2d..ed32b52b36e5febd653061735a5296fe71c61d7d 100644 (file)
 #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. */