From 6e753403635f85e8149c123c416ac29ead4c4b17 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Fri, 28 Aug 2015 18:55:58 +0800 Subject: [PATCH] regress: fix Makefile & ro_mem_test.c --- regress/Makefile | 2 +- regress/ro_mem_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/Makefile b/regress/Makefile index a75cde02..ed82f3aa 100644 --- a/regress/Makefile +++ b/regress/Makefile @@ -4,7 +4,7 @@ LDFLAGS = -L.. -lunicorn TESTS = map_crash map_write TESTS += sigill sigill2 TESTS += block_test -TESTS += ro_mem_test nr_mem_test +TESTS += ro_mem_test all: $(TESTS) diff --git a/regress/ro_mem_test.c b/regress/ro_mem_test.c index 38e84cd0..576cac01 100644 --- a/regress/ro_mem_test.c +++ b/regress/ro_mem_test.c @@ -82,7 +82,7 @@ static bool hook_mem_invalid(uch handle, uc_mem_type type, printf(">>> Missing memory is being WRITTEN at 0x%"PRIx64 ", data size = %u, data value = 0x%"PRIx64 "\n", address, size, value); return false; - case UC_MEM_WRITE_NR: + case UC_MEM_WRITE_NW: printf(">>> RO memory is being WRITTEN at 0x%"PRIx64 ", data size = %u, data value = 0x%"PRIx64 "\n", address, size, value); return false;