diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-06 09:58:40 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-06 10:05:13 +0000 |
commit | d2f240d7ea11738ba889668a669ffb7845d06e7b (patch) | |
tree | 020802df1f92f750ee91f0834c09bac0e304c3a2 /t/t0016-onenine-encoding-is-tricky.sh | |
parent | 0283928fca45a012b31662b30b49990dac2aae18 (diff) | |
download | rainbows-d2f240d7ea11738ba889668a669ffb7845d06e7b.tar.gz |
Fortunately this only affects the hardly-used FiberSpawn and FiberPool concurrency models, and also unreleased revisions of Rev. 1.9 encoding is tricky to handle right when doing I/O in Ruby...
Diffstat (limited to 't/t0016-onenine-encoding-is-tricky.sh')
-rwxr-xr-x | t/t0016-onenine-encoding-is-tricky.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/t/t0016-onenine-encoding-is-tricky.sh b/t/t0016-onenine-encoding-is-tricky.sh new file mode 100755 index 0000000..8757e43 --- /dev/null +++ b/t/t0016-onenine-encoding-is-tricky.sh @@ -0,0 +1,28 @@ +#!/bin/sh +. ./test-lib.sh +t_plan 4 "proper handling of onenine encoding for $model" + +t_begin "setup and startup" && { + rainbows_setup $model + rainbows -D ./t0016.rb -c $unicorn_config + rainbows_wait_start + expect_sha1=8ff79d8115f9fe38d18be858c66aa08a1cc27a66 +} + +t_begin "response matches expected" && { + rm -f $ok + ( + curl -sSf http://$listen/ && echo ok > $ok + ) | rsha1 > $tmp + test x$expect_sha1 = x"$(cat $tmp)" +} + +t_begin "shutdown server" && { + kill -QUIT $rainbows_pid +} + +dbgcat r_err + +t_begin "check stderr" && check_stderr + +t_done |