aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_system.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal: false for all filesnaruse2015-12-161-0/+1
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/lib/envutil.rb: Moved from test/ruby/.akr2014-11-131-1/+0
| | | | | | | | | | | | | | * test/lib/find_executable.rb: Ditto. * test/lib/memory_status.rb: Ditto. * test/lib/test/unit.rb: require envutil. * test/: Don't require envutil in test files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: get rid of warnings.usa2014-03-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_system.rb: commit missnobu2013-01-271-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem#test_system_redirect_win): fix intentional failure left carelessly. [Bug #7482] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_system.rb: indentnobu2013-01-271-15/+15
| | | | | | * test/ruby/test_system.rb (TestSystem#test_system): adjust indent git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_system.rb: fix testnobu2013-01-271-5/+25
| | | | | | | * test/ruby/test_system.rb (TestSystem#test_system_redirect_win): fix meaningless test. [Bug #7482] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (szInternalCmds, internal_match, internal_cmd_match):usa2012-04-231-0/+4
| | | | | | | | | | | get rid of a segmentation fault with GCC 4.7.0. reported by raylinn@gmail.com (ray linn) at [ruby-core:44505] [Bug #6333], and patched by mame. * test/ruby/test_system.rb (TestSystem#test_system): test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* cancel subversion backfire. sorrymatz2011-03-071-17/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (rb_gc_set_params): allow GC parameter configuration bymatz2011-03-071-13/+17
| | | | | | | environment variables. based on a patch from funny-falcon at https://gist.github.com/856296, but honors safe level. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#test_system_at):kosaki2011-03-011-16/+1
| | | | | | | | | remove tests for [bug#4396]. because we decided to reject this ticket. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn): use shell if a commandline containkosaki2011-02-281-5/+4
| | | | | | | | | | | | | | | double-quote character. * win32/win32.c (is_internal_cmd): similar, use shell if a commandline contain caret character. * test/ruby/test_system.rb (TestSystem#test_system_at): fix wrong test case. if system() invoke a command by using shell, system() never return nil. Also, "" quotation must not appear twice in a command line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#test_system_redirect_win):kosaki2011-02-271-0/+12
| | | | | | | | add test for system(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#test_system_at):kosaki2011-02-201-6/+24
| | | | | | | | add testcase for bug4396. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#test_system_at): use findstrusa2011-02-151-1/+1
| | | | | | | | command instead of find command, because the latter is confusing another famous Unix command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#test_system_at):kosaki2011-02-141-0/+13
| | | | | | | | added test. [ruby-core:35218] (#4393) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#test_system_at):kosaki2011-02-141-0/+7
| | | | | | | | added test. [ruby-core:35218] (#4393) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_{process,system}.rb (test_fallback_to_sh):nobu2010-11-051-1/+1
| | | | | | meaningless and wrong tests where /bin/sh does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (proc_exec_v, proc_spawn_v): try to execute with sh ifnobu2010-11-041-0/+11
| | | | | | no shebang. [ruby-core:32745] [EXPERIMENTAL] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_syntax.rb: split test_syntax from test_system.rb.akr2010-07-041-19/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_syntax): unified with test_syntax2.akr2010-07-041-29/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_syntax2): moved from sample/test.rbakr2010-07-041-0/+27
| | | | | | | [ruby-dev:41721] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem#valid_syntax): return falsenobu2010-04-201-0/+2
| | | | | | | on syntax error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress warnings.akr2010-01-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file_internal): assumes -x flag if no "ruby" is innobu2009-08-051-0/+12
| | | | | | | the shebang line. [ruby-dev:39015] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588]nobu2009-06-291-0/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): should not capture BOM.nobu2009-06-171-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]nobu2009-06-171-2/+3
| | | | | | | * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb (valid_syntax?), test/ruby/test_system.rbnobu2009-02-021-2/+2
| | | | | | | | (TestSystem::valid_syntax?): use catch and throw instead of return inside BEGIN block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * prelude.rb (require_relative): move require_relative frommatz2008-04-121-1/+0
| | | | | | | | lib/require_relative.rb. [ruby-core:16356] * lib/require_relative.rb: removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use require_relative to require ut_eof and envutil.akr2008-02-181-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (TestSystem::valid_syntax): applymatz2007-12-211-0/+1
| | | | | | | | ASCII-8BIT encoding explicitly. * re.c (rb_reg_prepare_re): add encoding name in the message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use ML ref. for assertion message.akr2007-11-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refine previous change.akr2007-09-281-33/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't generate temporary files under current directory.akr2007-09-281-13/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keepnobu2007-08-181-1/+4
| | | | | | | comment lines first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sample/test.rb: "print nil" now prints empty string.matz2006-09-251-1/+1
| | | | | | | * test/ruby/test_system.rb (TestSystem::test_system): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix "-e:1: undefined method `sub' for main:Object (NoMethodError)"akr2005-12-291-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (string_content): get rid of segfault at empty evstr.nobu2004-12-081-0/+4
| | | | | | | fixed: [ruby-dev:25113] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/*: should not depend on $KCODE.nahi2004-02-181-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/*: remove $: trick. [ruby-dev:22763] use test/runner.rb tonahi2004-01-291-1/+0
| | | | | | | run test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_ungetc): raise an exception at unread stream tonobu2003-12-231-7/+3
| | | | | | | | | | avoid unspecified behavior. [ruby-dev:22330] * test/ruby/test_system.rb (test_syntax): glob relatively from __FILE__. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]nahi2003-12-231-2/+2
| | | | | | | | | | * test/ruby/test_system.rb: num of asserts depended on running dir. * test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot handle euc-jp. install iconv, uconv or xmlscan. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): follow IO#read.nobu2003-12-051-1/+1
| | | | | | | | * test/ruby/ut_eof.rb, test/ruby/test_file.rb, test/ruby/test_pipe.rb, test/stringio/test_stringio.rb: add EOF test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):nobu2003-10-221-1/+2
| | | | | | | | | | | | | | ignore tests which raised LoadError. * test/drb/drbtest.rb, test/ruby/test_beginendblock.rb, test/ruby/test_system.rb: avoid requiring same file twice. * test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use ARGV unless invoked directly. do not create test cases unless required libraries are available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.nahi2003-10-051-5/+2
| | | | | | | | | | | * test/ruby/test_system.rb: use envutil.rb * test/ruby/test_beginendblock.rb: added. * test/ruby/beginmainend.rb: added. used in test_beginendblock.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: assert_same, assert_match, and so on.nahi2003-09-061-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order, #permute, #parse): allow annobu2003-09-051-35/+26
| | | | | | | | | | array as argument. * test/ruby/test_*.rb: moved invariants to left side in assert_equal, and use assert_nil, assert_raises and so on. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'nahi2003-09-051-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_system.rb (test_system): check existence of rubyeban2003-09-051-7/+12
| | | | | | | interpreter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: tests for ruby itself.nahi2003-09-041-0/+77
* test/ruby/test_*.rb: split sample/test.rb into 28 test/unit testcases. some tests could not be translates... search '!!' mark to see it. * test/csv/test_csv.rb: should require 'csv', not '../lib/csv'. test runner should set load path correctly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e