summaryrefslogtreecommitdiff
path: root/harness
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2015-07-01 13:33:38 -0400
committerJeff Moyer <jmoyer@redhat.com>2015-07-01 13:33:38 -0400
commit5e1a5f92ab0a1f1a02628158e9f500fef992fbba (patch)
treebf7a918fd1b7c3d42ca7d336949a310b28d222b9 /harness
parentda47c32b2ff39e52fbed1622c34b86bc88d7c217 (diff)
downloadlibaio-5e1a5f92ab0a1f1a02628158e9f500fef992fbba.tar.gz
harness: don't hardcode page size
18.t hard-coded PAGE_SIZE to 4096. This patch passes the PAGE_SIZE in from the Makefile. Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Diffstat (limited to 'harness')
-rw-r--r--harness/Makefile2
-rw-r--r--harness/cases/18.t2
2 files changed, 1 insertions, 3 deletions
diff --git a/harness/Makefile b/harness/Makefile
index 3db5573..01ccfd3 100644
--- a/harness/Makefile
+++ b/harness/Makefile
@@ -6,7 +6,7 @@ PROGS:=$(PARTPROGS) $(EXTRAPROGS)
HARNESS_SRCS:=main.c
# io_queue.c
-CFLAGS+=-Wall -Werror -I../src -g -O -lpthread
+CFLAGS+=-Wall -Werror -I../src -g -O2 -lpthread -DPAGE_SIZE=$(shell getconf PAGESIZE)
#-lpthread -lrt
all: $(PROGS)
diff --git a/harness/cases/18.t b/harness/cases/18.t
index 1fdcf91..6bb0377 100644
--- a/harness/cases/18.t
+++ b/harness/cases/18.t
@@ -34,8 +34,6 @@
#include <libaio.h>
#include <stdbool.h>
-#define PAGE_SIZE 4096
-
#define FILENAME "tempfile"
#define FILEPATTERN '1'
#define DESTROY_PATTERN '2'