port test/unit/test_ccc.rb to Perl 5
[unicorn.git] / t / reopen-logs.ru
blob488da859788555461436cd85378309115e95f03e
1 # frozen_string_literal: false
2 use Rack::ContentLength
3 use Rack::ContentType, "text/plain"
4 run lambda { |env|
6   # our File objects for stderr/stdout should always have #path
7   # and be sync=true
8   ok = $stderr.sync &&
9        $stdout.sync &&
10        String === $stderr.path &&
11        String === $stdout.path
13   [ 200, {}, [ "#{ok}\n" ] ]