Merge branch 'ms/ls-remote-exit-with-status'
[gitweb.git] / t / t0081-line-buffer.sh
index 1dbe1c9b08c1d5140bf237bfee2a02cf4831d261..5067d1e15b566721c1a3ae79052cbcb023a03656 100755 (executable)
@@ -47,10 +47,10 @@ long_read_test () {
        rm -f input &&
        mkfifo input &&
        {
-               {
+               (
                        generate_tens_of_lines $tens_of_lines "$line" &&
-                       sleep 100
-               } >input &
+                       exec sleep 100
+               ) >input &
        } &&
        test-line-buffer input <<-EOF >output &&
        binary $readsize
@@ -109,11 +109,11 @@ test_expect_success PIPE '1-byte read, no input available' '
        rm -f input &&
        mkfifo input &&
        {
-               {
+               (
                        printf "%s" a &&
                        printf "%s" b &&
-                       sleep 100
-               } >input &
+                       exec sleep 100
+               ) >input &
        } &&
        test-line-buffer input <<-\EOF >actual &&
        binary 1