Skip to content

Commit

Permalink
add a test documenting cockroachdb#1801
Browse files Browse the repository at this point in the history
it would currently fail, so it is skipped.
  • Loading branch information
tbg committed Jul 24, 2015
1 parent 4e09492 commit 1c3aa5a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions sql/parser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,3 +361,26 @@ CREATE TABLE test (
}
}
}

func TestParsePanic(t *testing.T) {
// TODO(tschottdorf): see #1801; when fixed, remove this and next line.
t.Skip()
defer func() {
if r := recover(); r != nil {
t.Fatal(r)
}
}()
s := "SELECT(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(T" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F(F" +
"(F(F(F(F(F(F(F(F(F((" +
"F(0"

_, _ = Parse(s)
}

0 comments on commit 1c3aa5a

Please sign in to comment.