Skip to content

Instantly share code, notes, and snippets.

@bjfish
Created December 14, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjfish/d70799f5362123df458d3b35671a6618 to your computer and use it in GitHub Desktop.
Save bjfish/d70799f5362123df458d3b35671a6618 to your computer and use it in GitHub Desktop.
processs and exec spec failures
Brandons-MacBook-Pro:jruby brandonfish$ jt build
$ JRUBY_BUILD_MORE_QUIET=true ./mvnw -q package
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=2048m; support was removed in 8.0
/Users/brandonfish/Documents/jruby/core/target/generated-sources/annotated_classes.txt - not found. skip generator.
Brandons-MacBook-Pro:jruby brandonfish$ jt test spec/ruby/core/process/exec_spec.rb
$ ruby spec/mspec/bin/mspec run --config spec/truffle/truffle.mspec --excl-tag fails spec/ruby/core/process/exec_spec.rb
jruby+truffle 9.1.7.0-SNAPSHOT (2.3.1) 2016-12-03 unknown Java HotSpot(TM) 64-Bit Server VM 25.66-b17 on 1.8.0_66-b17 [darwin-x86_64]
1)
Process.exec raises Errno::ENOENT for a command which does not exist ERROR
NameError: undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `method_missing'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:7:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:7:in `block (2 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
2)
Process.exec raises Errno::EACCES when the file does not have execute permissions ERROR
NameError: undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `method_missing'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:17:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:17:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
3)
Process.exec raises Errno::EACCES when passed a directory ERROR
NameError: undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `method_missing'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:30:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:30:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[/ | 0% | 00:00:00] 0F 3E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/1-rubyexe.rb:1:in `<main>'
4)
Process.exec runs the specified command, replacing current process FAILED
Expected ""
to equal "hello\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:41:in `block (2 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[\ | 0% | 00:00:00] 1F 3E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/2-rubyexe.rb:1:in `<main>'
5)
Process.exec sets the current directory when given the :chdir option FAILED
Expected ""
to equal "/Users/brandonfish/Documents/jruby/rubyspec_temp\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:47:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:46:in `block (2 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
6)
An exception occurred during: before :each
Process.exec with a single argument subjects the specified command to shell expansion ERROR
Errno::EEXIST: Errno::EEXIST
7)
An exception occurred during: after :each
Process.exec with a single argument subjects the specified command to shell expansion ERROR
TypeError: Coercion error: nil.to_str => String failed
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:183:in `coerce_to_failed'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:173:in `execute_coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:166:in `coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:181:in `StringValue'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:499:in `coerce_to_path'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/file.rb:478:in `expand_path'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:73:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
8)
An exception occurred during: before :each
Process.exec with a single argument creates an argument array with shell parsing semantics for whitespace ERROR
Errno::EEXIST: Errno::EEXIST
9)
An exception occurred during: after :each
Process.exec with a single argument creates an argument array with shell parsing semantics for whitespace ERROR
TypeError: Coercion error: nil.to_str => String failed
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:183:in `coerce_to_failed'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:173:in `execute_coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:166:in `coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:181:in `StringValue'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:499:in `coerce_to_path'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/file.rb:478:in `expand_path'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:73:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[- | 0% | 00:00:00] 2F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/6-rubyexe.rb:1:in `<main>'
10)
Process.exec (environment variables) sets environment variables in the child environment FAILED
Expected ""
to equal "BAR\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:126:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[| | 0% | 00:00:00] 3F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/7-rubyexe.rb:1:in `<main>'
11)
Process.exec (environment variables) unsets environment variables whose value is nil FAILED
Expected ""
to equal "\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:131:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:130:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[- | 0% | 00:00:00] 4F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/8-rubyexe.rb:1:in `<main>'
12)
Process.exec (environment variables) coerces environment argument using to_hash FAILED
Expected ""
to equal "BAR\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:140:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[| | 0% | 00:00:00] 5F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/9-rubyexe.rb:1:in `<main>'
13)
Process.exec (environment variables) unsets other environment variables when given a true :unsetenv_others option FAILED
Expected ""
to equal "\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:145:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:144:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[/ | 0% | 00:00:00] 6F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/14-rubyexe.rb:4:in `<main>'
14)
Process.exec with an options Hash with Integer option keys maps the key to a file descriptor in the child that inherits the file descriptor from the parent specified by the value FAILED
Expected /Users/brandonfish/Documents/jruby/rubyspec_temp/12-exec_fd_map.txt
to have data "writing to fd: 15"
but starts with nil
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:204:in `block (5 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/process/exec_spec.rb:4:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[| | ==================100%================== | 00:00:00] 7F 7E
Finished in 98.285000 seconds
1 file, 18 examples, 21 expectations, 7 failures, 7 errors, 0 tagged
-----------------------------------------------------
The rubyspec temp directory is not empty. Ensure that
all specs are cleaning up temporary files:
/Users/brandonfish/Documents/jruby/rubyspec_temp
-----------------------------------------------------
FAILED (pid 10300 exit 1): ruby spec/mspec/bin/mspec run --config spec/truffle/truffle.mspec --excl-tag fails spec/ruby/core/process/exec_spec.rb
Brandons-MacBook-Pro:jruby brandonfish$ jt test spec/ruby/core/kernel/exec_spec.rb
$ ruby spec/mspec/bin/mspec run --config spec/truffle/truffle.mspec --excl-tag fails spec/ruby/core/kernel/exec_spec.rb
jruby+truffle 9.1.7.0-SNAPSHOT (2.3.1) 2016-12-03 unknown Java HotSpot(TM) 64-Bit Server VM 25.66-b17 on 1.8.0_66-b17 [darwin-x86_64]
1)
Kernel#exec raises Errno::ENOENT for a command which does not exist ERROR
NameError: undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `method_missing'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:7:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:7:in `block (2 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
2)
Kernel#exec raises Errno::EACCES when the file does not have execute permissions ERROR
NameError: undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `method_missing'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:17:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:17:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
3)
Kernel#exec raises Errno::EACCES when passed a directory ERROR
NameError: undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `method_missing'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:30:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:30:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[- | 0% | 00:00:00] 0F 3E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/1-rubyexe.rb:1:in `<main>'
4)
Kernel#exec runs the specified command, replacing current process FAILED
Expected ""
to equal "hello\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:41:in `block (2 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[| | 0% | 00:00:00] 1F 3E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/2-rubyexe.rb:1:in `<main>'
5)
Kernel#exec sets the current directory when given the :chdir option FAILED
Expected ""
to equal "/Users/brandonfish/Documents/jruby/rubyspec_temp\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:47:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:46:in `block (2 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
6)
An exception occurred during: before :each
Kernel#exec with a single argument subjects the specified command to shell expansion ERROR
Errno::EEXIST: Errno::EEXIST
7)
An exception occurred during: after :each
Kernel#exec with a single argument subjects the specified command to shell expansion ERROR
TypeError: Coercion error: nil.to_str => String failed
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:183:in `coerce_to_failed'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:173:in `execute_coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:166:in `coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:181:in `StringValue'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:499:in `coerce_to_path'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/file.rb:478:in `expand_path'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:73:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
8)
An exception occurred during: before :each
Kernel#exec with a single argument creates an argument array with shell parsing semantics for whitespace ERROR
Errno::EEXIST: Errno::EEXIST
9)
An exception occurred during: after :each
Kernel#exec with a single argument creates an argument array with shell parsing semantics for whitespace ERROR
TypeError: Coercion error: nil.to_str => String failed
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:183:in `coerce_to_failed'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:173:in `execute_coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:166:in `coerce_to'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:181:in `StringValue'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/type.rb:499:in `coerce_to_path'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/file.rb:478:in `expand_path'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:73:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[\ | 0% | 00:00:00] 2F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/6-rubyexe.rb:1:in `<main>'
10)
Kernel#exec (environment variables) sets environment variables in the child environment FAILED
Expected ""
to equal "BAR\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:126:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[/ | 0% | 00:00:00] 3F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/7-rubyexe.rb:1:in `<main>'
11)
Kernel#exec (environment variables) unsets environment variables whose value is nil FAILED
Expected ""
to equal "\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:131:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:130:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[\ | 0% | 00:00:00] 4F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/8-rubyexe.rb:1:in `<main>'
12)
Kernel#exec (environment variables) coerces environment argument using to_hash FAILED
Expected ""
to equal "BAR\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:140:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[/ | 0% | 00:00:00] 5F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/9-rubyexe.rb:1:in `<main>'
13)
Kernel#exec (environment variables) unsets other environment variables when given a true :unsetenv_others option FAILED
Expected ""
to equal "\n"
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:145:in `block (4 levels) in <main>'
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:144:in `block (3 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[- | 0% | 00:00:00] 6F 7E(core):1:in `method_missing': undefined local variable or method `split_command' for Rubinius::Mirror::Process::Execute (NameError)
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:366:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process_mirror.rb:45:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/process.rb:575:in `exec'
from /Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:225:in `exec'
from /Users/brandonfish/Documents/jruby/rubyspec_temp/14-rubyexe.rb:4:in `<main>'
14)
Kernel#exec with an options Hash with Integer option keys maps the key to a file descriptor in the child that inherits the file descriptor from the parent specified by the value FAILED
Expected /Users/brandonfish/Documents/jruby/rubyspec_temp/12-exec_fd_map.txt
to have data "writing to fd: 15"
but starts with nil
/Users/brandonfish/Documents/jruby/spec/ruby/shared/process/exec.rb:204:in `block (5 levels) in <main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `block in all?'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `each'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/enumerable.rb:469:in `all?'
/Users/brandonfish/Documents/jruby/spec/ruby/core/kernel/exec_spec.rb:5:in `<main>'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
/Users/brandonfish/Documents/jruby/truffle/src/main/ruby/core/kernel.rb:315:in `load'
[- | ==================100%================== | 00:00:00] 7F 7E
Finished in 93.657000 seconds
1 file, 20 examples, 23 expectations, 7 failures, 7 errors, 0 tagged
-----------------------------------------------------
The rubyspec temp directory is not empty. Ensure that
all specs are cleaning up temporary files:
/Users/brandonfish/Documents/jruby/rubyspec_temp
-----------------------------------------------------
FAILED (pid 11579 exit 1): ruby spec/mspec/bin/mspec run --config spec/truffle/truffle.mspec --excl-tag fails spec/ruby/core/kernel/exec_spec.rb
Brandons-MacBook-Pro:jruby brandonfish$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment