From 2cb4226e52d5010eb4f92942e40499b6aa124262 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 31 Oct 2009 06:20:41 +0000 Subject: tests: provide a pure Ruby setsid(8) equivalent setsid(8) is non-portable, but we depend on Ruby already and it's trivial to implement; so just use the Ruby-only version --- GNUmakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 551b77a..695c0ae 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -92,9 +92,13 @@ else rm $(stamp) 2>/dev/null && $(check_test) endif +# not all systems have setsid(8), we need it because we spam signals +# stupidly in some tests... +rb_setsid := $(ruby) -e 'Process.setsid' -e 'exec *ARGV' + # TRACER='strace -f -o $(t).strace -s 100000' run_test = $(quiet_pre) \ - setsid $(TRACER) $(ruby) -w $(arg) $(TEST_OPTS) $(quiet_post) || \ + $(rb_setsid) $(TRACER) $(ruby) -w $(arg) $(TEST_OPTS) $(quiet_post) || \ (sed "s,^,$(extra): ," >&2 < $(t); exit 1) %.n: arg = $(subst .n,,$(subst --, -n ,$@)) -- cgit v1.2.3-24-ge0c7