diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/corefile_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/corefile_test.go b/test/corefile_test.go new file mode 100644 index 000000000..1f08ab2f1 --- /dev/null +++ b/test/corefile_test.go @@ -0,0 +1,17 @@ +package test + +import ( + "testing" +) + +func TestCorefile1(t *testing.T) { + corefile := `ΘΆ +acl +` + // this crashed, now it should return an error. + i, _, _, err := CoreDNSServerAndPorts(corefile) + if err == nil { + defer i.Stop() + t.Fatalf("Expected an error got none") + } +} |