unix-yy.test: fix portability issue

* tests/unix-yy-connect.awk (r_close_listen): Quote square brackets
that are not part of a bracket expression.
This commit is contained in:
Дмитрий Левин 2015-12-06 06:17:45 +00:00
parent 02d92d095c
commit 4f109266ec

View File

@ -5,7 +5,7 @@ BEGIN {
r_i = "[1-9][0-9]*"
r_socket = "^socket\\(PF_(LOCAL|UNIX|FILE), SOCK_STREAM, 0\\) += 1<UNIX:\\[(" r_i ")\\]>$"
r_close_listen = "^close\\(0<UNIX:[" r_i ",\"" addr "\"]>\\) += 0$"
r_close_listen = "^close\\(0<UNIX:\\[" r_i ",\"" addr "\"\\]>\\) += 0$"
}
NR == 1 {