1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Author: Michael R. Crusoe <crusoe@ucdavis.edu>
Forwarded: https://github.com/djberg96/pathname2/issues/2
Description: Skip fragile test that fails due to stdin being a pipe
This occurs in chroot/pbuilder environments
--- ruby-pathname2.orig/test/test_pathname.rb
+++ ruby-pathname2/test/test_pathname.rb
@@ -86,8 +86,8 @@
def test_realpath_platform
case CONFIG['host_os']
when /linux/i
- path1 = '/dev/stdin'
- assert_true(['/dev/pts/0', '/dev/proc/self/fd/0'].include?(Pathname.new(path1).realpath))
+ #path1 = '/dev/stdin'
+ #assert_true(['/dev/pts/0', '/dev/proc/self/fd/0'].include?(Pathname.new(path1).realpath))
when /sunos|solaris/i
path1 = '/dev/null'
path2 = '/dev/stdin'
|