Timeout error (#1173)
* Implement timeout state and new error for such case * Adjust test_i386_loop sample * Adjust test_i386_loop test
This commit is contained in:

committed by
Nguyen Anh Quynh

parent
95890d593f
commit
3a3bc0c22d
@ -382,8 +382,8 @@ static void test_i386_loop(void)
|
||||
// emulate machine code in 2 seconds, so we can quit even
|
||||
// if the code loops
|
||||
err = uc_emu_start(uc, ADDRESS, ADDRESS + sizeof(X86_CODE32_LOOP) - 1, 2 * UC_SECOND_SCALE, 0);
|
||||
if (err) {
|
||||
printf("Failed on uc_emu_start() with error returned %u: %s\n",
|
||||
if (err != UC_ERR_TIMEOUT) {
|
||||
printf("Failed on uc_emu_start() with error returned %u: %s, expected UC_ERR_TIMEOUT\n",
|
||||
err, uc_strerror(err));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user