Debian Codegraph @

testsuite/semko/badregex01.stp

raw
1 #! stap -p2
2
3 // invalid actual regexes
4 probe begin {
5 // TODOXXX write a series of tests where the script syntax is
6 // valid, but the syntax of the regexen is invalid
7
8 // this somewhat duplicates the 'compile fail' tests in the
9 // raw-regex testsuite, so there's no need to be comprehensive here;
10 // just test the ability of the regex infrastructure to pass
11 // error messages to the systemtap reporter cleanly
12
13 print("abc" =~ "a[b-d}+")
14 exit()
15 }