diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-07 20:15:03 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-08 00:34:35 -0800 |
commit | b4f1271320d38e83141dbb38463c3a368661aef7 (patch) | |
tree | bc0514443ebc62d2f24b2c690e3499c5a6dd9cb2 /t | |
parent | 026219a98c0ecf919c3ecce32ba389254a571795 (diff) | |
download | rainbows-b4f1271320d38e83141dbb38463c3a368661aef7.tar.gz |
Seems to pass all tests, but that may only mean our test cases are lacking...
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 |