From: Antonio Terceiro <terceiro@softwarelivre.org> To: raindrops-public@bogomips.org Cc: Antonio Terceiro <terceiro@debian.org> Subject: [PATCH] test/test_linux.rb: use plain ASCII in tempfile name Date: Mon, 22 Feb 2016 14:49:56 -0300 [thread overview] Message-ID: <1456163396-21079-1-git-send-email-terceiro@softwarelivre.org> (raw) From: Antonio Terceiro <terceiro@debian.org> 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
next reply other threads:[~2016-02-22 17:50 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-02-22 17:49 Antonio Terceiro [this message] 2016-02-22 18:28 ` Hleb Valoshka 2016-02-23 1:51 ` Eric Wong 2016-02-23 11:00 ` Antonio Terceiro 2016-02-29 12:47 ` Eric Wong 2016-03-01 12:01 ` Antonio Terceiro
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://yhbt.net/raindrops/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1456163396-21079-1-git-send-email-terceiro@softwarelivre.org \ --to=terceiro@softwarelivre.org \ --cc=raindrops-public@bogomips.org \ --cc=terceiro@debian.org \ --subject='Re: [PATCH] test/test_linux.rb: use plain ASCII in tempfile name' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: ../../raindrops.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).