about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-05-20 03:06:41 -0700
committerEric Wong <normalperson@yhbt.net>2010-05-20 03:06:41 -0700
commit94307f744608ad6fd4f8d0ab57d23cf405917b15 (patch)
tree8638f9f579aac1d1f516f50bf5e3f635b3ebc13b /t
parentabc207b2918606867094f2820bab58223e99aac4 (diff)
downloadrainbows-94307f744608ad6fd4f8d0ab57d23cf405917b15.tar.gz
This test can cause a lot of I/O, especially when
run in parallel.  Just rely on the fixed rsha1 code
to compute the SHA1 of the response.
Diffstat (limited to 't')
-rwxr-xr-xt/t0005-large-file-response.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0005-large-file-response.sh b/t/t0005-large-file-response.sh
index 40bcdf8..d25134e 100755
--- a/t/t0005-large-file-response.sh
+++ b/t/t0005-large-file-response.sh
@@ -50,11 +50,11 @@ t_begin "HTTP/1.0 test" && {
 t_begin "HTTP/0.9 test" && {
         (
                 printf 'GET /random_blob\r\n'
-                cat $fifo > $tmp &
+                rsha1 < $fifo > $tmp &
                 wait
                 echo ok > $ok
         ) | socat - TCP:$listen > $fifo
-        cmp $tmp random_blob
+        test $(cat $tmp) = $(rsha1 < random_blob)
         test xok = x$(cat $ok)
 }