From: "phasis68 (Heesob Park)" Date: 2013-01-24T16:40:19+09:00 Subject: [ruby-core:51616] [ruby-trunk - Bug #7721] test_too_long_path2(TestProcess) fails on mingw32 Issue #7721 has been updated by phasis68 (Heesob Park). The NoMemoryError is raised from rb_syserr_new_str call in make_errno_exc_str function with too long path string. Here is a patch: diff --git a/error.c b/error.c.new index 481c117..c26feff 100644 --- a/error.c +++ b/error.c.new @@ -1859,6 +1859,9 @@ make_errno_exc_str(VALUE mesg) { int n = errno; +#ifdef E2BIG + if (n == E2BIG) mesg = Qnil; +#endif errno = 0; if (!mesg) mesg = Qnil; if (n == 0) { ---------------------------------------- Bug #7721: test_too_long_path2(TestProcess) fails on mingw32 https://bugs.ruby-lang.org/issues/7721#change-35574 Author: phasis68 (Heesob Park) Status: Assigned Priority: Normal Assignee: nobu (Nobuyoshi Nakada) Category: Target version: ruby -v: [ 6319/11317] TestProcess#test_too_long_path2Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\work\snapshot-mg32>exit = 8.03 s 33) Failure: test_too_long_path2(TestProcess) [C:/work/snapshot-mg32/test/ruby/test_process.rb:1393]: [ruby-core:34833]. [Errno::ENOENT, Errno::E2BIG] expected but nothing was raised. This failure is also mentioned at https://bugs.ruby-lang.org/issues/7710#note-3 -- http://bugs.ruby-lang.org/