From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Status: No, score=-0.6 required=3.0 tests=AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: raindrops-public@bogomips.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1F8B020455 for ; Mon, 22 Feb 2016 17:50:25 +0000 (UTC) Received: from winterfell.analizo.org (unknown [IPv6:2600:3c00::f03c:91ff:fe69:3960]) (Authenticated sender: terceiro@analizo.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id D8F8EA80E4; Mon, 22 Feb 2016 18:50:23 +0100 (CET) Received: from localhost (unknown [191.250.109.247]) by winterfell.analizo.org (Postfix) with ESMTPSA id 02BA34DFC9; Mon, 22 Feb 2016 14:50:21 -0300 (BRT) From: Antonio Terceiro To: raindrops-public@bogomips.org Cc: Antonio Terceiro Subject: [PATCH] test/test_linux.rb: use plain ASCII in tempfile name Date: Mon, 22 Feb 2016 14:49:56 -0300 Message-Id: <1456163396-21079-1-git-send-email-terceiro@softwarelivre.org> X-Mailer: git-send-email 2.7.0 List-Id: From: Antonio Terceiro On Debian, this fixes the build against ruby2.3, which otherwise fails with errors like: RegexpError: /.../n has a non escaped non ASCII character in non ASCII-8BIT script --- test/test_linux.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_linux.rb b/test/test_linux.rb index 0e79a86..a56a07d 100644 --- a/test/test_linux.rb +++ b/test/test_linux.rb @@ -20,7 +20,7 @@ class TestLinux < Test::Unit::TestCase end def test_unix - tmp = Tempfile.new("\xde\xad\xbe\xef") # valid path, really :) + tmp = Tempfile.new('raindrops') File.unlink(tmp.path) us = UNIXServer.new(tmp.path) stats = unix_listener_stats([tmp.path]) @@ -48,7 +48,7 @@ class TestLinux < Test::Unit::TestCase end def test_unix_all - tmp = Tempfile.new("\xde\xad\xbe\xef") # valid path, really :) + tmp = Tempfile.new('raindrops') File.unlink(tmp.path) us = UNIXServer.new(tmp.path) @to_close << UNIXSocket.new(tmp.path) @@ -68,7 +68,7 @@ class TestLinux < Test::Unit::TestCase end def test_unix_all_unused - tmp = Tempfile.new("\xde\xad\xbe\xef") # valid path, really :) + tmp = Tempfile.new('raindrops') File.unlink(tmp.path) us = UNIXServer.new(tmp.path) stats = unix_listener_stats @@ -79,7 +79,7 @@ class TestLinux < Test::Unit::TestCase end def test_unix_resolves_symlinks - tmp = Tempfile.new("\xde\xad\xbe\xef") # valid path, really :) + tmp = Tempfile.new('raindrops') File.unlink(tmp.path) us = UNIXServer.new(tmp.path) -- 2.7.0