Skip to content

Commit

Permalink
interp: add glob regression test from master
Browse files Browse the repository at this point in the history
The original issue mvdan#347 only affected v2, not v3, but it's still useful
to have this regression test for the future. After all, we only happened
to fix this bug in v3 as part of a correctness refactor, as we hadn't
found the bug until recently.
  • Loading branch information
mvdan committed Jan 15, 2019
1 parent 23a244e commit 7f14f56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interp/interp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,10 @@ set +o pipefail
"mkdir x-d1 x-d2; touch x-f; echo ././x-*/// | sed -e 's@\\\\@/@g'",
"././x-d1/ ././x-d2/\n",
},
{
"mkdir -p x-d1/a x-d2/b; touch x-f; echo x-*/* | sed -e 's@\\\\@/@g'",
"x-d1/a x-d2/b\n",
},
{
"mkdir x-d; touch x-f; test -d $PWD/x-*/",
"",
Expand Down

0 comments on commit 7f14f56

Please sign in to comment.