2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class TestCase(TestBase
):
11 "breakpoint set --func-regex (",
14 "error: Function name regular expression could "
15 + "not be compiled: parentheses not balanced"
19 # Point out if looks like the user provided a globbing expression.
21 "breakpoint set --func-regex *a",
24 "error: Function name regular expression could "
25 + "not be compiled: repetition-operator operand invalid",
26 "warning: Function name regex does not accept glob patterns.",
30 "breakpoint set --func-regex ?a",
33 "error: Function name regular expression could "
34 + "not be compiled: repetition-operator operand invalid",
35 "warning: Function name regex does not accept glob patterns.",
38 # Make sure that warning is only shown for invalid regular expressions
39 # that look like a globbing expression (i.e., they have a leading * or ?).
41 "breakpoint set --func-regex a*+",
44 substrs
=["warning: Function name regex does not accept glob patterns."],
47 "breakpoint set --func-regex a?+",
50 substrs
=["warning: Function name regex does not accept glob patterns."],