From ef39866fa6e6ac91cc64f18573dea22c3f75c6e1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Jan 2015 09:17:51 +0000 Subject: consolidate spawn fix for Ruby [Bug #8770] Ensure we can apply the workaround to dtas-sourceedit and our test cases while also simplifying the existing call sites a little. This will also make for less code churn in 3-5 years down the line when we drop <= 2.1 support. --- test/test_player_integration.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_player_integration.rb') diff --git a/test/test_player_integration.rb b/test/test_player_integration.rb index 2525ac5..033e313 100644 --- a/test/test_player_integration.rb +++ b/test/test_player_integration.rb @@ -3,11 +3,12 @@ require './test/player_integration' class TestPlayerIntegration < Testcase include PlayerIntegration + include DTAS::SpawnFix def test_cmd_rate env = ENV.to_hash.merge(@fmt.to_env) cmd = "sox -n $SOXFMT - synth 3 pinknoise | #@cmd" - pid = Process.spawn(env, cmd) + pid = spawn(env, cmd) t = Time.now _, _ = Process.waitpid2(pid) elapsed = Time.now - t -- cgit v1.2.3-24-ge0c7