t/t0001-unix-http.sh in rainbows-4.4.3 vs t/t0001-unix-http.sh in rainbows-4.5.0

- old
+ new

@@ -49,23 +49,23 @@ ) | socat - UNIX:$unix_socket > $fifo } dbgcat tmp t_begin "two HTTP/1.1 responses" && { - test 2 -eq $(grep '^HTTP/1.1' $tmp | wc -l) + test 2 -eq $(grep '^HTTP/1.1' $tmp | count_lines) } t_begin "two HTTP/1.1 200 OK responses" && { - test 2 -eq $(grep '^HTTP/1.1 200 OK' $tmp | wc -l) + test 2 -eq $(grep '^HTTP/1.1 200 OK' $tmp | count_lines) } t_begin 'one "Connection: keep-alive" response' && { - test 1 -eq $(grep '^Connection: keep-alive' $tmp | wc -l) + test 1 -eq $(grep '^Connection: keep-alive' $tmp | count_lines) } t_begin 'one "Connection: close" response' && { - test 1 -eq $(grep '^Connection: close' $tmp | wc -l) + test 1 -eq $(grep '^Connection: close' $tmp | count_lines) } t_begin 'check subshell success' && { test x"$(cat $ok)" = xok } @@ -87,22 +87,22 @@ dbgcat tmp dbgcat r_err t_begin "two HTTP/1.1 responses" && { - test 2 -eq $(grep '^HTTP/1.1' $tmp | wc -l) + test 2 -eq $(grep '^HTTP/1.1' $tmp | count_lines) } t_begin "two HTTP/1.1 200 OK responses" && { - test 2 -eq $(grep '^HTTP/1.1 200 OK' $tmp | wc -l) + test 2 -eq $(grep '^HTTP/1.1 200 OK' $tmp | count_lines) } t_begin 'one "Connection: keep-alive" response' && { - test 1 -eq $(grep '^Connection: keep-alive' $tmp | wc -l) + test 1 -eq $(grep '^Connection: keep-alive' $tmp | count_lines) } t_begin 'one "Connection: close" response' && { - test 1 -eq $(grep '^Connection: close' $tmp | wc -l) + test 1 -eq $(grep '^Connection: close' $tmp | count_lines) } t_begin 'check subshell success' && { test x"$(cat $ok)" = xok }