join_threads: simplify thread stoppage check
[rainbows.git] / t / t0022-copy_stream-byte-range.sh
blob3e0a66b0b936fb1c117a06dc1f067df37d656de2
1 #!/bin/sh
2 . ./test-lib.sh
3 test -r random_blob || die "random_blob required, run with 'make $0'"
4 case $RUBY_VERSION in
5 1.9.*) ;;
6 *)
7 t_info "skipping $T since it can't IO.copy_stream"
8 exit 0
9 ;;
10 esac
12 case $model in
13 ThreadSpawn|WriterThreadSpawn|ThreadPool|WriterThreadPool|Base) ;;
14 XEpollThreadSpawn) ;;
16 t_info "skipping $T since it doesn't use IO.copy_stream"
17 exit 0
19 esac
21 t_plan 13 "IO.copy_stream byte range response for $model"
23 t_begin "setup and startup" && {
24 rtmpfiles out err
25 rainbows_setup $model
26 # can't load Rack::Lint here since it clobbers body#to_path
27 rainbows -E none -D large-file-response.ru -c $unicorn_config
28 rainbows_wait_start
31 . ./byte-range-common.sh