mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 20:58:19 +00:00
Merge pull request #194 from lunixbochs/master
fix #192 (outdated enums in Go test)
This commit is contained in:
commit
56a7b0246c
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ func TestX86InvalidRead(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
err = mu.Start(ADDRESS, ADDRESS+uint64(len(code)))
|
err = mu.Start(ADDRESS, ADDRESS+uint64(len(code)))
|
||||||
if err.(UcError) != ERR_READ_INVALID {
|
if err.(UcError) != ERR_READ_UNMAPPED {
|
||||||
t.Fatal("Expected ERR_READ_INVALID")
|
t.Fatal("Expected ERR_READ_INVALID")
|
||||||
}
|
}
|
||||||
ecx, _ := mu.RegRead(X86_REG_ECX)
|
ecx, _ := mu.RegRead(X86_REG_ECX)
|
||||||
|
@ -66,7 +66,7 @@ func TestX86InvalidWrite(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
err = mu.Start(ADDRESS, ADDRESS+uint64(len(code)))
|
err = mu.Start(ADDRESS, ADDRESS+uint64(len(code)))
|
||||||
if err.(UcError) != ERR_WRITE_INVALID {
|
if err.(UcError) != ERR_WRITE_UNMAPPED {
|
||||||
t.Fatal("Expected ERR_WRITE_INVALID")
|
t.Fatal("Expected ERR_WRITE_INVALID")
|
||||||
}
|
}
|
||||||
ecx, _ := mu.RegRead(X86_REG_ECX)
|
ecx, _ := mu.RegRead(X86_REG_ECX)
|
||||||
|
|
Loading…
Reference in a new issue