aboutsummaryrefslogtreecommitdiff
path: root/src/debug/macho/file_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/macho/file_test.go')
-rw-r--r--src/debug/macho/file_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/debug/macho/file_test.go b/src/debug/macho/file_test.go
index 03915c86e23..9beeb80dd27 100644
--- a/src/debug/macho/file_test.go
+++ b/src/debug/macho/file_test.go
@@ -416,3 +416,10 @@ func TestTypeString(t *testing.T) {
t.Errorf("got %v, want %v", TypeExec.GoString(), "macho.Exec")
}
}
+
+func TestOpenBadDysymCmd(t *testing.T) {
+ _, err := openObscured("testdata/gcc-amd64-darwin-exec-with-bad-dysym.base64")
+ if err == nil {
+ t.Fatal("openObscured did not fail when opening a file with an invalid dynamic symbol table command")
+ }
+}