diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-04-29 05:45:44 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-04-29 05:45:44 +0000 |
commit | aff36865d5e738babdbf36f34fd0693b67bb3d90 (patch) | |
tree | 24bcb22e23dc7e7c587f34bba33dfcbee8c020fb /t | |
parent | 40cf3eb79054caa4b7d81120a736491aca8259eb (diff) | |
download | rainbows-aff36865d5e738babdbf36f34fd0693b67bb3d90.tar.gz |
Whee! This is going to be awesome.
Diffstat (limited to 't')
-rw-r--r-- | t/GNUmakefile | 1 | ||||
-rw-r--r-- | t/simple-http_XEpollThreadSpawn.ru | 10 | ||||
-rwxr-xr-x | t/t0022-copy_stream-byte-range.sh | 1 | ||||
-rwxr-xr-x | t/t9100-thread-timeout.sh | 1 | ||||
-rwxr-xr-x | t/t9101-thread-timeout-threshold.sh | 1 |
5 files changed, 14 insertions, 0 deletions
diff --git a/t/GNUmakefile b/t/GNUmakefile index 7cb7db4..408eabf 100644 --- a/t/GNUmakefile +++ b/t/GNUmakefile @@ -21,6 +21,7 @@ export RUBY_VERSION RUBY_ENGINE ifeq (Linux,$(shell uname -s)) models += XEpoll + models += XEpollThreadSpawn models += Epoll endif models += WriterThreadPool diff --git a/t/simple-http_XEpollThreadSpawn.ru b/t/simple-http_XEpollThreadSpawn.ru new file mode 100644 index 0000000..e89fccc --- /dev/null +++ b/t/simple-http_XEpollThreadSpawn.ru @@ -0,0 +1,10 @@ +use Rack::ContentLength +use Rack::ContentType +run lambda { |env| + if env['rack.multithread'] == true && + env['rainbows.model'] == :XEpollThreadSpawn + [ 200, {}, [ Thread.current.inspect << "\n" ] ] + else + raise env.inspect + end +} diff --git a/t/t0022-copy_stream-byte-range.sh b/t/t0022-copy_stream-byte-range.sh index 7539c02..3e0a66b 100755 --- a/t/t0022-copy_stream-byte-range.sh +++ b/t/t0022-copy_stream-byte-range.sh @@ -11,6 +11,7 @@ esac case $model in ThreadSpawn|WriterThreadSpawn|ThreadPool|WriterThreadPool|Base) ;; +XEpollThreadSpawn) ;; *) t_info "skipping $T since it doesn't use IO.copy_stream" exit 0 diff --git a/t/t9100-thread-timeout.sh b/t/t9100-thread-timeout.sh index 422052e..8d61cc5 100755 --- a/t/t9100-thread-timeout.sh +++ b/t/t9100-thread-timeout.sh @@ -4,6 +4,7 @@ case $model in ThreadSpawn|ThreadPool) ;; RevThreadSpawn|RevThreadPool) ;; CoolioThreadSpawn|CoolioThreadPool) ;; +XEpollThreadSpawn) ;; *) t_info "$0 is only compatible with Thread*"; exit 0 ;; esac diff --git a/t/t9101-thread-timeout-threshold.sh b/t/t9101-thread-timeout-threshold.sh index 7309475..67e65f6 100755 --- a/t/t9101-thread-timeout-threshold.sh +++ b/t/t9101-thread-timeout-threshold.sh @@ -4,6 +4,7 @@ case $model in ThreadSpawn|ThreadPool) ;; RevThreadSpawn|RevThreadPool) ;; CoolioThreadSpawn|CoolioThreadPool) ;; +XEpollThreadSpawn) ;; *) t_info "$0 is only compatible with Thread*"; exit 0 ;; esac |