Skip to content

Commit

Permalink
Showing 2 changed files with 0 additions and 80 deletions.
79 changes: 0 additions & 79 deletions spec/truffle/tags/core/kernel/spawn_tags.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
fails:Kernel#spawn is a private method
fails:Kernel#spawn executes the given command
fails:Kernel#spawn returns the process ID of the new process as a Fixnum
fails:Kernel#spawn returns immediately
fails:Kernel#spawn sets environment variables in the child environment
fails:Kernel#spawn unsets environment variables whose value is nil
@@ -12,52 +9,21 @@ fails:Kernel#spawn raises an ArgumentError if an environment key includes a null
fails:Kernel#spawn raises an ArgumentError if an environment value includes a null byte
fails:Kernel#spawn unsets other environment variables when given a true :unsetenv_others option
fails:Kernel#spawn unsets other environment variables when given a non-false :unsetenv_others option
fails:Kernel#spawn does not unset other environment variables when given a false :unsetenv_others option
fails:Kernel#spawn does not unset other environment variables when given a nil :unsetenv_others option
fails:Kernel#spawn does not unset environment variables included in the environment hash
fails:Kernel#spawn joins the current process group by default
fails:Kernel#spawn joins the current process if pgroup: false
fails:Kernel#spawn joins the current process if pgroup: nil
fails:Kernel#spawn joins a new process group if pgroup: true
fails:Kernel#spawn joins a new process group if pgroup: 0
fails:Kernel#spawn joins the specified process group if pgroup: pgid
fails:Kernel#spawn raises an ArgumentError if given a negative :pgroup option
fails:Kernel#spawn raises a TypeError if given a symbol as :pgroup option
fails:Kernel#spawn uses the current working directory as its working directory
fails:Kernel#spawn uses the current umask by default
fails:Kernel#spawn sets the umask if given the :umask option
fails:Kernel#spawn raises an ArgumentError if passed no command arguments
fails:Kernel#spawn raises an ArgumentError if passed env or options but no command arguments
fails:Kernel#spawn raises an ArgumentError if passed env and options but no command arguments
fails:Kernel#spawn raises an Errno::ENOENT for an empty string
fails:Kernel#spawn raises an Errno::ENOENT if the command does not exist
fails:Kernel#spawn raises an Errno::EACCES when the file does not have execute permissions
fails:Kernel#spawn raises an Errno::EACCES when passed a directory
fails:Kernel#spawn raises an ArgumentError when passed a string key in options
fails:Kernel#spawn raises an ArgumentError when passed an unknown option key
fails:Kernel#spawn with a single argument subjects the specified command to shell expansion
fails:Kernel#spawn with a single argument creates an argument array with shell parsing semantics for whitespace
fails:Kernel#spawn with a single argument calls #to_str to convert the argument to a String
fails:Kernel#spawn with a single argument raises an ArgumentError if the command includes a null byte
fails:Kernel#spawn with a single argument raises a TypeError if the argument does not respond to #to_str
fails:Kernel#spawn with multiple arguments does not subject the arguments to shell expansion
fails:Kernel#spawn with multiple arguments preserves whitespace in passed arguments
fails:Kernel#spawn with multiple arguments calls #to_str to convert the arguments to Strings
fails:Kernel#spawn with multiple arguments raises an ArgumentError if an argument includes a null byte
fails:Kernel#spawn with multiple arguments raises a TypeError if an argument does not respond to #to_str
fails:Kernel#spawn with a command array uses the first element as the command name and the second as the argv[0] value
fails:Kernel#spawn with a command array does not subject the arguments to shell expansion
fails:Kernel#spawn with a command array preserves whitespace in passed arguments
fails:Kernel#spawn with a command array calls #to_ary to convert the argument to an Array
fails:Kernel#spawn with a command array calls #to_str to convert the first element to a String
fails:Kernel#spawn with a command array calls #to_str to convert the second element to a String
fails:Kernel#spawn with a command array raises an ArgumentError if the Array does not have exactly two elements
fails:Kernel#spawn with a command array raises an ArgumentError if the Strings in the Array include a null byte
fails:Kernel#spawn with a command array raises a TypeError if an element in the Array does not respond to #to_str
fails:Kernel#spawn when passed :chdir changes to the directory passed for :chdir
fails:Kernel#spawn when passed :chdir calls #to_path to convert the :chdir value
fails:Kernel.spawn executes the given command
fails:Kernel.spawn returns the process ID of the new process as a Fixnum
fails:Kernel.spawn returns immediately
fails:Kernel.spawn sets environment variables in the child environment
fails:Kernel.spawn unsets environment variables whose value is nil
@@ -69,48 +35,19 @@ fails:Kernel.spawn raises an ArgumentError if an environment key includes a null
fails:Kernel.spawn raises an ArgumentError if an environment value includes a null byte
fails:Kernel.spawn unsets other environment variables when given a true :unsetenv_others option
fails:Kernel.spawn unsets other environment variables when given a non-false :unsetenv_others option
fails:Kernel.spawn does not unset other environment variables when given a false :unsetenv_others option
fails:Kernel.spawn does not unset other environment variables when given a nil :unsetenv_others option
fails:Kernel.spawn does not unset environment variables included in the environment hash
fails:Kernel.spawn joins the current process group by default
fails:Kernel.spawn joins the current process if pgroup: false
fails:Kernel.spawn joins the current process if pgroup: nil
fails:Kernel.spawn joins a new process group if pgroup: true
fails:Kernel.spawn joins a new process group if pgroup: 0
fails:Kernel.spawn joins the specified process group if pgroup: pgid
fails:Kernel.spawn raises an ArgumentError if given a negative :pgroup option
fails:Kernel.spawn raises a TypeError if given a symbol as :pgroup option
fails:Kernel.spawn uses the current working directory as its working directory
fails:Kernel.spawn uses the current umask by default
fails:Kernel.spawn sets the umask if given the :umask option
fails:Kernel.spawn raises an ArgumentError if passed no command arguments
fails:Kernel.spawn raises an ArgumentError if passed env or options but no command arguments
fails:Kernel.spawn raises an ArgumentError if passed env and options but no command arguments
fails:Kernel.spawn raises an Errno::ENOENT for an empty string
fails:Kernel.spawn raises an Errno::ENOENT if the command does not exist
fails:Kernel.spawn raises an Errno::EACCES when the file does not have execute permissions
fails:Kernel.spawn raises an Errno::EACCES when passed a directory
fails:Kernel.spawn raises an ArgumentError when passed a string key in options
fails:Kernel.spawn raises an ArgumentError when passed an unknown option key
fails:Kernel.spawn with a single argument subjects the specified command to shell expansion
fails:Kernel.spawn with a single argument creates an argument array with shell parsing semantics for whitespace
fails:Kernel.spawn with a single argument calls #to_str to convert the argument to a String
fails:Kernel.spawn with a single argument raises an ArgumentError if the command includes a null byte
fails:Kernel.spawn with a single argument raises a TypeError if the argument does not respond to #to_str
fails:Kernel.spawn with multiple arguments does not subject the arguments to shell expansion
fails:Kernel.spawn with multiple arguments preserves whitespace in passed arguments
fails:Kernel.spawn with multiple arguments calls #to_str to convert the arguments to Strings
fails:Kernel.spawn with multiple arguments raises an ArgumentError if an argument includes a null byte
fails:Kernel.spawn with multiple arguments raises a TypeError if an argument does not respond to #to_str
fails:Kernel.spawn with a command array uses the first element as the command name and the second as the argv[0] value
fails:Kernel.spawn with a command array does not subject the arguments to shell expansion
fails:Kernel.spawn with a command array preserves whitespace in passed arguments
fails:Kernel.spawn with a command array calls #to_ary to convert the argument to an Array
fails:Kernel.spawn with a command array calls #to_str to convert the first element to a String
fails:Kernel.spawn with a command array calls #to_str to convert the second element to a String
fails:Kernel.spawn with a command array raises an ArgumentError if the Array does not have exactly two elements
fails:Kernel.spawn with a command array raises an ArgumentError if the Strings in the Array include a null byte
fails:Kernel.spawn with a command array raises a TypeError if an element in the Array does not respond to #to_str
fails:Kernel.spawn when passed :chdir changes to the directory passed for :chdir
fails:Kernel.spawn when passed :chdir calls #to_path to convert the :chdir value
fails:Kernel#spawn 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
@@ -130,23 +67,13 @@ slow:Kernel.spawn when passed close_others: false does not close STDIN
slow:Kernel.spawn when passed close_others: false does not close STDOUT
slow:Kernel.spawn when passed close_others: false does not close STDERR
fails:Kernel#spawn when passed close_others: true closes file descriptors >= 3 in the child process
fails:Kernel#spawn when passed close_others: false closes file descriptors >= 3 in the child process because they are set close_on_exec by default
fails:Kernel#spawn when passed close_others: false does not close file descriptors >= 3 in the child process if fds are set close_on_exec=false
fails:Kernel.spawn when passed close_others: true closes file descriptors >= 3 in the child process
fails:Kernel.spawn when passed close_others: false closes file descriptors >= 3 in the child process because they are set close_on_exec by default
fails:Kernel.spawn when passed close_others: false does not close file descriptors >= 3 in the child process if fds are set close_on_exec=false
fails:Kernel#spawn when passed close_others: true does not close STDIN
fails:Kernel#spawn when passed close_others: true does not close STDOUT
fails:Kernel#spawn when passed close_others: true does not close STDERR
fails:Kernel#spawn when passed close_others: false does not close STDIN
fails:Kernel#spawn when passed close_others: false does not close STDOUT
fails:Kernel#spawn when passed close_others: false does not close STDERR
fails:Kernel.spawn when passed close_others: true does not close STDIN
fails:Kernel.spawn when passed close_others: true does not close STDOUT
fails:Kernel.spawn when passed close_others: true does not close STDERR
fails:Kernel.spawn when passed close_others: false does not close STDIN
fails:Kernel.spawn when passed close_others: false does not close STDOUT
fails:Kernel.spawn when passed close_others: false does not close STDERR
slow:Kernel#spawn redirects STDOUT to the given file if out: String
slow:Kernel#spawn redirects STDOUT to the given file if out: [String name, String mode]
slow:Kernel#spawn redirects STDERR to the given file if err: String
@@ -169,9 +96,3 @@ slow:Kernel.spawn redirects STDERR to the given file descriptor if err: IO
slow:Kernel.spawn redirects STDERR to child STDOUT if :err => [:child, :out]
slow:Kernel.spawn redirects both STDERR and STDOUT to the given file descriptior
slow:Kernel.spawn redirects both STDERR and STDOUT to the given IO
fails:Kernel#spawn redirects STDOUT to the given file if out: String
fails:Kernel#spawn redirects STDOUT to the given file if out: [String name, String mode]
fails:Kernel#spawn redirects STDERR to the given file if err: String
fails:Kernel.spawn redirects STDOUT to the given file if out: String
fails:Kernel.spawn redirects STDOUT to the given file if out: [String name, String mode]
fails:Kernel.spawn redirects STDERR to the given file if err: String
Original file line number Diff line number Diff line change
@@ -127,7 +127,6 @@ private Collection<SpawnFileAction> parseOptions(DynamicObject options) {

@TruffleBoundary
private long call(String command, String[] arguments, String[] environmentVariables, Collection<SpawnFileAction> fileActions) {
// TODO (pitr 04-Sep-2015): only simple implementation, does not support file actions or other options
return getContext().getNativePlatform().getPosix().posix_spawnp(
command,
fileActions,

0 comments on commit 3d7d59e

Please sign in to comment.