summaryrefslogtreecommitdiffstats
path: root/test/ruby
Commit message (Collapse)AuthorAgeFilesLines
...
* * test/ruby/test_pipe.rb: use IO.pipe instead of IO.popen.akr2003-12-051-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): follow IO#read.nobu2003-12-055-2/+73
| | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@5115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_read): should not terminate on empty string; waitmatz2003-12-031-1/+1
| | | | | | | | | | until real EOF. [ruby-dev:21969] * io.c (argf_read): should adjust length to read, when length is specified and read spans command line argument files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_sadded): prohibit singleton method definition formatz2003-12-011-22/+22
| | | | | | | Numerics. fill yet another gap between Fixnum and Bignum. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_env.rb (test_has_value, test_index): condition fornobu2003-11-281-0/+2
| | | | | | | aboves. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_env.rb: add tests for ENV.usa2003-11-281-0/+84
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_proc.rb (test_arity): added.nobu2003-11-271-13/+39
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (Init_stack): stack region is far smaller than usual ifmatz2003-11-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pthread is used. * marshal.c (w_extended): singleton methods should not be checked when dumping via marshal_dump() or _dump(). [ruby-talk:85909] * file.c (getcwdofdrv): avoid using getcwd() directly, use my_getcwd() instead. * merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine <sunshine@sunshineco.com>. [ruby-core:01596] * marshal.c (w_object): LINK check earlier than anything else, i.e. do not dump TYPE_IVAR for already dumped objects. (ruby-bugs PR#1220) * eval.c (rb_eval): call "inherited" only when a new class is generated; not on reopening. * eval.c (eval): prepend error position in evaluating string to * configure.in: revived NextStep, OpenStep, and Rhapsody ports which had become unbuildable; enhanced --enable-fat-binary option so that it accepts a list of desired architectures (rather than assuming a fixed list), or defaults to a platform-appropriate list if user does not provide an explicit list; made the default list of architectures for MAB (fat binary) more comprehensive; now uses -fno-common even when building the interpreter (in addition to using it for extensions), thus allowing the interpreter to be embedded into a plugin module of an external project (in addition to allowing embedding directly into an application); added checks for <netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now ensures that -I/usr/local/include is employed when extensions' extconf.rb scripts invoke have_header() since extension checks on NextStep and OpenStep will fail without it if the desired resource resides in the /usr/local tree; fixed formatting of --help message. * Makefile.in: $(LIBRUBY_A) rule now deletes the archive before invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives (see configure's --enable-fat-binary option); added rule for new missing/getcwd.c. * defines.h: fixed endian handling during MAB build (see configure's --enable-fat-binary option) to ensure that all portions of the project see the correct WORDS_BIGENDIAN value (some extension modules were getting the wrong endian setting); added missing constants GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H define in NeXT section. * dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on NextStep since, on some installations, this value always resolves uselessly to zero. * dln.c: added error reporting to NextStep extension loader since the previous behavior of failing silently was not useful; now ensures that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice on Rhapsody since this header lacks multiple-include protection, which resulted in "redefinition" compilation errors. * main.c: also create hard reference to objc_msgSend() on NeXT platforms (in addition to Apple platforms). * lib/mkmf.rb: now exports XCFLAGS from configure script to extension makefiles so that extensions can be built MAB (see configure's --enable-fat-binary option); also utilize XCFLAGS in cc_command() (but not cpp_command() because MAB flags are incompatible with direct invocation of `cpp'). * ext/curses/extconf.rb: now additionally checks for presence of these curses functions which are not present on NextStep or Openstep: bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(), setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(), wscrl(), wsetscrreg() * ext/curses/curses.c: added appropriate #ifdef's for additional set of curses functions now checked by extconf.rb; fixed curses_bkgd() and window_bkgd() to correctly return boolean result rather than numeric result; fixed window_getbkgd() to correctly signal an error by returning nil rather than -1. * ext/etc/etc.c: setup_passwd() and setup_group() now check for null pointers before invoking rb_tainted_str_new2() upon fields extracted from `struct passwd' and `struct group' since null pointers in some fields are common on NextStep/OpenStep (especially so for the `pw_comment' field) and rb_tainted_str_new2() throws an exception when it receives a null pointer. * ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(). * ext/socket/getaddrinfo.c: cast first argument of getservbyname(), gethostbyaddr(), and gethostbyname() from (const char*) to non-const (char*) for older platforms such as NextStep and OpenStep. * ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(); include <netinet/in_systm.h> if present for NextStep and OpenStep; cast first argument of gethostbyaddr() and getservbyname() from (const char*) to non-const (char*) for older platforms. * ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for platforms such as NextStep and OpenStep which lack strdup(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (READ_DATA_BUFFERED): new macro to detect whether stdiomatz2003-10-301-0/+9
| | | | | | | | | | buffer filled. * io.c (rb_io_fptr_cleanup): move path deallocation to rb_io_fptr_finalize (finalizer called by GC). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (proc_invoke): single array value to normal Proc#callmatz2003-10-292-7/+33
| | | | | | | | (i.e. not via lambda call), should be treated just like yield. [ruby-dev:21726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (new_yield): remove magic argument rule; "yield [1,2]"matz2003-10-282-49/+49
| | | | | | | | should yield single array of two elements, not two values. [ruby-dev:21726] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):nobu2003-10-222-2/+4
| | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@4830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()matz2003-10-201-1/+1
| | | | | | | | | | destination. * eval.c (localjump_destination): use unique number in ruby_frame for localjump destination. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_signal.rb (test_signal): restore old trap.nobu2003-10-201-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_range.rb: added.usa2003-10-171-0/+13
| | | | | | | * MANIFEST: add test/ruby/test_range.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/digest/test_digest.rb (test_eq): show failed class.nobu2003-10-151-0/+21
| | | | | | | | * test/ruby/test_iterator.rb (test_break, test_return_trace_func): test localjump destination. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor ofnahi2003-10-142-2/+14
| | | | | | | | | | | | | | | | | | | | | | | SOAPBasetype and SOAPCompoundtype. * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*: Encoding methods signature change. Pass SOAPGenerator as a parameter. * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring for better marshalling/unmarshalling support. Now I think SOAP marshaller supports all kind of object graph which is supported by Ruby's original marshaller. Of course there could be bugs as always. Find it. :-) * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO. DEBUG is too noisy. * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset. * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid useless warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],eban2003-10-131-2/+10
| | | | | | | not "ruby". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_new4): should not preserve FL_TAINT status in thematz2003-10-131-4/+7
| | | | | | | | | | | | | | | | | internal shared string. [ruby-dev:21601] * string.c (rb_str_new4): ditto. * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values. * process.c: ditto. [ruby-dev:38521] * lib/debug.rb (debug_command): should enter emacs mode when assigned any value to the environment variable "EMACS". On Meadow, (getenv "EMACS") is "meadow". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb, test/ruby/endblockwarn.rb: commited oldernahi2003-10-072-15/+1
| | | | | | | version.. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb: add tests for nested BEGIN/END.nahi2003-10-074-19/+110
| | | | | | | | | * test/ruby/beginmainend.rb: add tests for nested BEGIN/END. * test/ruby/endblockwarn.rb: new file added to test of END-in-method warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb (test_endinmethod): END{} is nownobu2003-10-071-1/+4
| | | | | | | allowed in eval. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_block_argument_without_paren): added.nahi2003-10-061-6/+11
| | | | | | | (follows sample/test.rb) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: added test fornahi2003-10-062-1/+19
| | | | | | | eval-ed BEGIN END order. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests aboutnahi2003-10-052-3/+43
| | | | | | | scope, order and allowd syntax. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.nahi2003-10-054-5/+33
| | | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@4691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_exception.rb (test_else): added.akira2003-10-041-0/+92
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_const_defined_0): look up constants in Object asnobu2003-10-021-1/+4
| | | | | | | | | | well. [ruby-dev:21458] * test/ruby/test_defined.rb (TestDefined::test_defined): test for constants. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb: new test test_break__nested_loop[123].aamine2003-09-291-0/+39
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb: new file. only asserts unlink-before-close behaviournahi2003-09-261-0/+32
| | | | | | | | | | now. * test/soap/marshal/test_digraph.rb: should close before unlink. unlink-before-close pattern is not needed here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_marshal.rb: add test for ruby's objects.nahi2003-09-261-0/+280
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (struct tag): dst should be VALUE.nobu2003-09-091-2/+3
| | | | | | | | * eval.c (localjump_destination): stop at the scope where the current block was created. [ruby-dev:21353] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: assert_same, assert_match, and so on.nahi2003-09-069-28/+24
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser#order, #permute, #parse): allow annobu2003-09-0528-782/+742
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@4516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * same as the previous commit.nahi2003-09-052-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'nahi2003-09-0524-563/+565
| | | | git-svn-id: http://svn.ruby-lang.org/repos/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: http://svn.ruby-lang.org/repos/ruby/trunk@4507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: added. gets testcases from command line and runs it.nahi2003-09-051-6/+0
| | | | | | | * test/ruby/test_gc.rb: remove useless part which was for dumping test result. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_gc.rb: added. splitter.rb which I made to splitnahi2003-09-051-0/+41
| | | | | | | | sample/test.rb into test/ruby/test_* kindly removed GC test (the last section in the original test) to reduce things to be worried. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_iterator.rb (test_block_in_arg): add no blocknobu2003-09-041-104/+82
| | | | | | | | | | given tests. * test/ruby/test_iterator.rb (test_ljump): uncomment LocalJumpError test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: tests for ruby itself.nahi2003-09-0428-0/+2223
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e