raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] test/test_linux.rb: use plain ASCII in tempfile name
@ 2016-02-22 17:49 Antonio Terceiro
  2016-02-22 18:28 ` Hleb Valoshka
  0 siblings, 1 reply; 6+ messages in thread
From: Antonio Terceiro @ 2016-02-22 17:49 UTC (permalink / raw)
  To: raindrops-public; +Cc: Antonio Terceiro

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-01 12:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-22 17:49 [PATCH] test/test_linux.rb: use plain ASCII in tempfile name Antonio Terceiro
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

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/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).