From 5e1a5f92ab0a1f1a02628158e9f500fef992fbba Mon Sep 17 00:00:00 2001 From: Jeff Moyer Date: Wed, 1 Jul 2015 13:33:38 -0400 Subject: 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 --- harness/Makefile | 2 +- harness/cases/18.t | 2 -- 2 files changed, 1 insertion(+), 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 #include -#define PAGE_SIZE 4096 - #define FILENAME "tempfile" #define FILEPATTERN '1' #define DESTROY_PATTERN '2' -- cgit v1.2.1