Results for var-op-patsub.test.sh

statusoshosh_.pyosh_.cc
pass 19192
N-I 110
FAIL 1119
total212121
caseoshosh_.pyosh_.ccdescription
0pass pass FAIL Pattern replacement
details
1pass pass FAIL Pattern replacement on unset variable
details
2pass pass FAIL Global Pattern replacement with /
details
3pass pass FAIL Left Anchored Pattern replacement with #
details
4pass pass FAIL Right Anchored Pattern replacement with %
details
5pass pass FAIL Replace fixed strings
details
6pass pass FAIL Replace is longest match
details
7pass pass FAIL Replace char class
details
8pass pass FAIL Replace hard glob
details
9pass pass pass Pattern replacement ${v/} is not valid
10pass pass pass Pattern replacement ${v//} is not valid
11pass pass FAIL ${v/a} is the same as ${v/a/} -- no replacement string
details
12pass pass FAIL Replacement with special chars (bug fix)
details
13pass pass FAIL Replace backslash
details
14pass pass FAIL Replace right ]
details
15pass pass FAIL Substitute glob characters in pattern, quoted and unquoted
details
16pass pass FAIL Substitute one unicode character (UTF-8)
details
17FAIL FAIL FAIL Can't substitute one unicode character when LANG=C
detailsdetailsdetails
18pass pass FAIL ${x/^} regression
details
19pass pass FAIL \(\) in pattern (regression)
details
20N-I N-I FAIL Extended globs! (not supported in Oil)
detailsdetailsdetails
40 passed, 0 OK, 2 not implemented, 0 BUG, 21 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh_.cc0 Pattern replacement

[osh_.cc stdout] Expected 'abXX\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc1 Pattern replacement on unset variable

[osh_.cc stdout] Expected '--\nstatus=0\n', got ''
[osh_.cc status] Expected 1, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc2 Global Pattern replacement with /

[osh_.cc stdout] Expected 'yy_xx_xx yy_yy_xx\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc3 Left Anchored Pattern replacement with #

[osh_.cc stdout] Expected 'xx_yy_xx xx_xx_xx\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc4 Right Anchored Pattern replacement with %

[osh_.cc stdout] Expected 'xx_yy_xx xx_xx_yy\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc5 Replace fixed strings

[osh_.cc stdout] Expected 'yy_xx yy_yy yy_xx xx_yy\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc6 Replace is longest match

[osh_.cc stdout] Expected 'begin [] end\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc7 Replace char class

[osh_.cc stdout] Expected 'yy_yy_yy xx-xx-xx\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc8 Replace hard glob

[osh_.cc stdout] Expected 'aa__cc\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc11 ${v/a} is the same as ${v/a/} -- no replacement string

[osh_.cc stdout] Expected 'abb\nstatus=0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc12 Replacement with special chars (bug fix)

[osh_.cc stdout] Expected '?x\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc13 Replace backslash

[osh_.cc stdout] Expected '[_]\n[\\_]\n[\\_]\n[_]\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc14 Replace right ]

[osh_.cc stdout] Expected '--_--\n--_--\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc15 Substitute glob characters in pattern, quoted and unquoted

[osh_.cc stdout] Expected 'a-b\n-\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc16 Substitute one unicode character (UTF-8)

[osh_.cc stdout] Expected 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh17 Can't substitute one unicode character when LANG=C

[osh stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr:
osh_.py17 Can't substitute one unicode character when LANG=C

[osh_.py stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got 'foo and foo\nfoo and _\xce\xbc_\n_\xce\xbc_ and foo\n'

stdout:
foo and foo
foo and _μ_
_μ_ and foo
stderr:
osh_.cc17 Can't substitute one unicode character when LANG=C

[osh_.cc stdout] Expected '_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n_\xce\xbc_ and _\xce\xbc_\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc18 ${x/^} regression

[osh_.cc stdout] Expected 'abc\nabc\n^^\n^^^\n!!!\n!!\nb!c\na^c\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh_.cc19 \(\) in pattern (regression)

[osh_.cc stdout] Expected '1 z\n2 z\n3 fooz\n4 z\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.
osh20 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.py20 Extended globs! (not supported in Oil)

stdout:
ext foo()
ext foo()
stderr:
osh_.cc20 Extended globs! (not supported in Oil)

[osh_.cc stdout] Expected 'ext foo()\next foo()\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/libc.h:48: Tuple2<int, int> *libc::regex_first_group_match(Str *, Str *, int): Assertion `0' failed.