raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / 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	[flat|nested] 6+ messages in thread

end of thread, back to index

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

raindrops RubyGem user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://yhbt.net/raindrops-public
	git clone --mirror http://ou63pmih66umazou.onion/raindrops-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git