about summary refs log tree commit homepage
path: root/test/test_bin.rb
DateCommit message (Collapse)
2016-02-29test/*: fix mktmpdir usage for 1.9.3
We should not infinite loop, oops :x Also, ensure 'yahns' is in the directory in case tests are SIGKILL-ed and directories are left over.
2016-01-02copyright updates for 2016
Using the 'update-copyright' script from gnulib[1]: git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \ UPDATE_COPYRIGHT_USE_INTERVALS=2 \ xargs /path/to/gnulib/build-aux/update-copyright We're also switching to 'GPL-3.0+' as recommended by SPDX to be consistent with our gemspec and other metadata (as opposed to the longer but equivalent "GPLv3 or later"). [1] git://git.savannah.gnu.org/gnulib.git
2016-01-02enable frozen_string_literal for Ruby 2.3+
There are likely yet-to-be-discovered bugs in here. Also, keeping explicit #freeze calls for 2.2 users, since most users have not migrated to 2.3, yet.
2015-10-13copyright updates
Future updates may use the update-copyright script in gnulib: git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \ UPDATE_COPYRIGHT_USE_INTERVALS=2 \ xargs /path/to/gnulib/build-aux/update-copyright
2015-07-15emulate sd_listen_fds for systemd support
systemd socket emulation shares FDs across execve, just like the built-in SIGUSR2 upgrade process in unicorn. Thus it is easy to support inheriting sockets from systemd.
2013-10-25enforce FD_CLOEXEC on all pipes, including tests
We need to prevent FD leakage on Ruby 1.9.3
2013-10-22tests: do not lose exceptions on quit timeouts
We should see the reason for test failures.
2013-10-21test_bin: shutdown socket when not inheriting
close/FD_CLOEXEC may be insufficient since the socket could be released asynchronously, leading to occasional test failures. Even with a synchronous close/FD_CLOEXEC, there's a chance of a race because the server does not bind the socket right away.
2013-10-21wip for EADDRINUSE failure
2013-10-21tests: support disabling parallelization env
Temporarily disabling parallel tests maybe needed to diagnose some problems with tests.
2013-10-20test_bin: set close-on-exec for Ruby 1.9.3 compatibility
2013-10-19test_bin: add additional tests for SIGHUP
We can just add it into the SIGUSR2 test for now.
2013-10-19SIGUSR2 handling uses Process.spawn + tests
We no longer have to worry about 1.8 compatibility, so use Process.spawn and shorten our code. Also, add tests for this functionality.
2013-10-18test: cleanup socket usage and lifetimes
This should help prevent us from running out of FDs prematurely as our test suite becomes more multi-threaded. We can also use plain TCPSocket in tests where we inherit the file descriptor from the parent (w/o accept).
2013-10-18initial commit