From 15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 24 Oct 2009 20:41:15 -0700 Subject: tests: remove symlinks and small files, use Make This will make it easier to enable and manage tests for new concurrency models. --- t/simple-http_ThreadSpawn.ru | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 t/simple-http_ThreadSpawn.ru (limited to 't/simple-http_ThreadSpawn.ru') diff --git a/t/simple-http_ThreadSpawn.ru b/t/simple-http_ThreadSpawn.ru new file mode 100644 index 0000000..aa1accb --- /dev/null +++ b/t/simple-http_ThreadSpawn.ru @@ -0,0 +1,10 @@ +use Rack::ContentLength +use Rack::ContentType +run lambda { |env| + sleep 1 + if env['rack.multithread'] && env['rainbows.model'] == :ThreadSpawn + [ 200, {}, [ Thread.current.inspect << "\n" ] ] + else + raise "rack.multithread is not true" + end +} -- cgit v1.2.3-24-ge0c7