Skip to content

Commit

Permalink
Fix tests when using go 1.10 (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
comawill authored and aquynh committed Mar 20, 2018
1 parent 1f408ce commit 9a01ae8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bindings/go/unicorn/unicorn_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package unicorn

import (
"fmt"
"testing"
)

Expand All @@ -21,7 +20,7 @@ func TestMemUnmap(t *testing.T) {
t.Fatal(err)
}
if err := mu.MemWrite(0x1000, tmp); err.(UcError) != ERR_WRITE_UNMAPPED {
t.Fatal(fmt.Errorf("Expected ERR_WRITE_UNMAPPED, got: %v", err))
t.Fatalf("Expected ERR_WRITE_UNMAPPED, got: %v", err)
}
}

Expand Down Expand Up @@ -70,6 +69,6 @@ func TestQuery(t *testing.T) {
t.Fatal(err)
}
if mode != MODE_THUMB {
t.Fatal("query returned invalid mode: %d != %d", mode, MODE_THUMB)
t.Fatalf("query returned invalid mode: %d != %d", mode, MODE_THUMB)
}
}

0 comments on commit 9a01ae8

Please # to comment.