From ac68fd441d57e866d19d281e5234ccddf8312f25 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Mon, 25 May 2020 00:04:07 +0800 Subject: [PATCH] fix test_x86.c --- tests/unit/test_x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_x86.c b/tests/unit/test_x86.c index dc07433d..f890a26f 100644 --- a/tests/unit/test_x86.c +++ b/tests/unit/test_x86.c @@ -379,7 +379,7 @@ static void test_i386_loop(void **state) // emulate machine code in 2 seconds, so we can quit even // if the code loops err = uc_emu_start(uc, address, address+sizeof(code), 2*UC_SECOND_SCALE, 0); - uc_assert_err(err); + uc_assert_success(err); // verify register values uc_assert_success(uc_reg_read(uc, UC_X86_REG_ECX, &r_ecx));