about summary refs log tree commit homepage
path: root/t/t0022-copy_stream-byte-range.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-16 19:43:38 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-16 19:43:38 +0000
commit49b60d6f67a94560a802c6ff80c16c92093de877 (patch)
treeacf5e7c4551b393c64fa35535427173751caca82 /t/t0022-copy_stream-byte-range.sh
parent39f625fff05d457b01f088017f463a86d3b6c626 (diff)
downloadrainbows-49b60d6f67a94560a802c6ff80c16c92093de877.tar.gz
This makes things easier to maintain as we add more concurrency
options.
Diffstat (limited to 't/t0022-copy_stream-byte-range.sh')
-rwxr-xr-xt/t0022-copy_stream-byte-range.sh17
1 files changed, 1 insertions, 16 deletions
diff --git a/t/t0022-copy_stream-byte-range.sh b/t/t0022-copy_stream-byte-range.sh
index 3e0a66b..f8494d1 100755
--- a/t/t0022-copy_stream-byte-range.sh
+++ b/t/t0022-copy_stream-byte-range.sh
@@ -1,22 +1,7 @@
 #!/bin/sh
 . ./test-lib.sh
 test -r random_blob || die "random_blob required, run with 'make $0'"
-case $RUBY_VERSION in
-1.9.*) ;;
-*)
-        t_info "skipping $T since it can't IO.copy_stream"
-        exit 0
-        ;;
-esac
-
-case $model in
-ThreadSpawn|WriterThreadSpawn|ThreadPool|WriterThreadPool|Base) ;;
-XEpollThreadSpawn) ;;
-*)
-        t_info "skipping $T since it doesn't use IO.copy_stream"
-        exit 0
-        ;;
-esac
+check_copy_stream
 
 t_plan 13 "IO.copy_stream byte range response for $model"