diff options
Diffstat (limited to 't')
-rw-r--r-- | t/GNUmakefile | 1 | ||||
-rw-r--r-- | t/simple-http_RevThreadSpawn.ru | 9 | ||||
-rwxr-xr-x | t/t9000-rack-app-pool.sh | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/t/GNUmakefile b/t/GNUmakefile index 8c8ed84..da4dfd2 100644 --- a/t/GNUmakefile +++ b/t/GNUmakefile @@ -19,6 +19,7 @@ endif export RUBYLIB RUBY_VERSION models := ThreadPool ThreadSpawn Rev EventMachine +models += RevThreadSpawn ifeq ($(RUBY_VERSION),1.9.1) # 1.9.2-preview1 was broken models += Revactor endif diff --git a/t/simple-http_RevThreadSpawn.ru b/t/simple-http_RevThreadSpawn.ru new file mode 100644 index 0000000..145b876 --- /dev/null +++ b/t/simple-http_RevThreadSpawn.ru @@ -0,0 +1,9 @@ +use Rack::ContentLength +use Rack::ContentType +run lambda { |env| + if env['rack.multithread'] && env['rainbows.model'] == :RevThreadSpawn + [ 200, {}, [ env.inspect << "\n" ] ] + else + raise "rack.multithread is false" + end +} diff --git a/t/t9000-rack-app-pool.sh b/t/t9000-rack-app-pool.sh index 989b2c1..cd08724 100755 --- a/t/t9000-rack-app-pool.sh +++ b/t/t9000-rack-app-pool.sh @@ -1,7 +1,7 @@ #!/bin/sh . ./test-lib.sh case $model in -Thread*) ;; +*Thread*) ;; *) t_info "skipping $T since it's not compatible with $model" exit 0 |