diff options
author | Jeff Moyer <jmoyer@redhat.com> | 2015-07-01 13:33:38 -0400 |
---|---|---|
committer | Jeff Moyer <jmoyer@redhat.com> | 2015-07-01 13:33:38 -0400 |
commit | 5e1a5f92ab0a1f1a02628158e9f500fef992fbba (patch) | |
tree | bf7a918fd1b7c3d42ca7d336949a310b28d222b9 /harness | |
parent | da47c32b2ff39e52fbed1622c34b86bc88d7c217 (diff) | |
download | libaio-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/Makefile | 2 | ||||
-rw-r--r-- | harness/cases/18.t | 2 |
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' |