Backport #7904

test_spawn_too_long_path(TestProcess) fails on PPC64

Added by Vit Ondruch about 1 year ago. Updated about 1 year ago.

[ruby-core:52628]
Status:Closed
Priority:Normal
Assignee:Tomoyuki Chikanaga

Description

=begin
I observe following error on PPC64:
7) Failure:
testspawntoolongpath(TestProcess) [/builddir/build/BUILD/ruby-2.0.0-r39357/test/ruby/testprocess.rb:1383]:
[Errno::ENOENT, Errno::E2BIG, nil] expected but nothing was raised.
8) Failure:
test
aspawntoolongpath(TestProcess) [/builddir/build/BUILD/ruby-2.0.0-r39357/test/ruby/testprocess.rb:1388]:
[Errno::ENOENT, Errno::E2BIG, nil] expected but nothing was raised.

I am quite sure, that there was no such test error testing with rev38848. Not sure if that might be related to 38934.
=end

Associated revisions

Revision 39665
Added by Tomoyuki Chikanaga about 1 year ago

merge revision(s) 39417: [Backport #7904]

test_process.rb: fix test

* test/ruby/test_process.rb (assert_fail_too_long_path): get rid of

syntax error on sh, increase command line size until it exceeds the
limit. [Bug #7904]

History

#1 Updated by Koichi Sasada about 1 year ago

  • Assignee set to Nobuyoshi Nakada
  • Target version set to 2.1.0
  • Category set to core

Nobu, could you check it if it is critical or not for 2.0.0p0?

#2 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Open to Feedback

It seems a miss in the test probably.
Could you try with r39375?

#3 Updated by Vit Ondruch about 1 year ago

=begin
Testing with r39383

TestProcess#testaspawntoolongpath = sh: -c: line 0: syntax error near unexpected token |'
sh: -c: line 0:
a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a

... snip ...

a|a|a|a|a|a|a|a|a|a|a|a|a|a|'
0.08 s = F

and

8) Failure:
testaspawntoolongpath(TestProcess) [/builddir/build/BUILD/ruby-2.0.0-r39383/test/ruby/test_process.rb:1388]:
.

But one of the test errors (testspawntoolongpath) is gone.
=end

#4 Updated by Naohisa Goto about 1 year ago

Failure of the same two tests were observed also on Solaris10 before r39374.
After r39375, failure of testspawntoolongpath also vanished on Solaris10.

On Solaris10, with r39376,

TestProcess#testaspawntoolongpath = sh: a: not found
sh: a: not found
sh: a: not found
sh: a: not found
(snip many lines)
sh: a: not found
sh: a: not found
sh: a: not found
sh: fork failed - too many processes
536.65 s = F

and

13) Failure:
testaspawntoolongpath(TestProcess) [/XXXXXXX/test/ruby/test_process.rb:1388]:
.
[Errno::ENOENT, Errno::E2BIG] expected but nothing was raised.

#5 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39417.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


test_process.rb: fix test

  • test/ruby/testprocess.rb (assertfailtoolong_path): get rid of syntax error on sh, increase command line size until it exceeds the limit. [Bug #7904]

#6 Updated by Tomoyuki Chikanaga about 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (core)
  • Status changed from Closed to Assigned
  • Assignee changed from Nobuyoshi Nakada to Tomoyuki Chikanaga
  • Target version deleted (2.1.0)

#7 Updated by Tomoyuki Chikanaga about 1 year ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r39665.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39417: [Backport #7904]

test_process.rb: fix test

* test/ruby/test_process.rb (assert_fail_too_long_path): get rid of

syntax error on sh, increase command line size until it exceeds the
limit. [Bug #7904]

Also available in: Atom PDF