about summary refs log tree commit homepage
path: root/t/t0022-copy_stream-byte-range.sh
diff options
context:
space:
mode:
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"