1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
akr a070c4fbe3 * configure.in: check struct timespec, clock_gettime, utimensat,
struct stat.st_atim,
  struct stat.st_atimespec,
  struct stat.st_atimensec,
  struct stat.st_mtim,
  struct stat.st_mtimespec,
  struct stat.st_mtimensec,
  struct stat.st_ctim,
  struct stat.st_ctimespec,
  struct stat.st_ctimensec.

* include/ruby/missing.h: provide struct timespec if not available.

* time.c: support nanosecond-resolution using struct timespec.

* include/ruby/intern.h: provide rb_time_nano_new.

* file.c (utime_internal): use utimensat if available.
  (rb_file_s_utime): refactored.
  (rb_f_test): use stat_atime, stat_mtime, stat_ctime.
  (rb_stat_cmp): check tv_nsec.
  (stat_atimespec): new function.
  (stat_atime): ditto.
  (stat_mtimespec): ditto.
  (stat_mtime): ditto.
  (stat_ctimespec): ditto.
  (stat_ctime): ditto.
  (rb_stat_atime): use stat_atime.
  (rb_file_s_atime): ditto.
  (rb_file_atime): ditto.
  (rb_stat_mtime): use stat_mtime.
  (rb_file_s_mtime): ditto.
  (rb_file_mtime): ditto.
  (rb_file_ctime): use stat_ctime.
  (rb_file_s_ctime): ditto.
  (rb_stat_ctime): ditto.

* variable.c (rb_copy_generic_ivar): clear clone's instance variables
  if obj has no instance variable.

* marshal.c (w_object): dump instance variables of generated string
  for TYPE_USERDEF, even if original object has instance variables.

* lib/time.rb (Time#xmlschema): use nsec instead of usec.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-19 09:09:38 +00:00
..
beginmainend.rb * Merge YARV 2006-12-31 15:02:22 +00:00
endblockwarn.rb
envutil.rb
marshaltestlib.rb * test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s) 2007-02-08 13:03:54 +00:00
sentence.rb * test/ruby/sentence.rb (Sentence): include Enumerable. 2007-08-24 19:01:46 +00:00
test_alias.rb * eval.c (rb_f_send): allow send/__send__ to call methods of all 2007-11-04 20:36:20 +00:00
test_array.rb * array.c (rb_ary_product): generalized product, now takes 2007-10-02 03:33:53 +00:00
test_assignment.rb * eval.c (rb_f_send): allow send/__send__ to call methods of all 2007-11-04 20:36:20 +00:00
test_basicinstructions.rb * test/ruby/test_basicinstructions.rb: updated for new class 2007-11-09 04:37:36 +00:00
test_beginendblock.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_bignum.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_call.rb
test_case.rb
test_class.rb * Merge YARV 2006-12-31 15:02:22 +00:00
test_clone.rb * test/ruby/test_clone.rb: fix to current spec 2007-02-08 13:32:01 +00:00
test_condition.rb
test_const.rb * Merge YARV 2006-12-31 15:02:22 +00:00
test_continuation.rb * cont.c: fix to remove Fiber.new until fiber.so is not loaded. 2007-08-26 03:31:20 +00:00
test_defined.rb * test/*: should not depend on $KCODE. 2004-02-18 13:08:08 +00:00
test_dir.rb specify prefix for Dir.mktmpdir. 2007-10-24 07:11:35 +00:00
test_encoding.rb * encoding.c (rb_obj_encoding): rdoc update. a patch from David 2007-10-14 08:31:51 +00:00
test_enumerator.rb * set eol-style. 2007-11-16 01:30:29 +00:00
test_env.rb
test_eval.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_exception.rb
test_fiber.rb * cont.c: Thread local storage should be fiber local. 2007-09-28 19:04:45 +00:00
test_file.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_fixnum.rb * numeric.c (fix_pow): integer power calculation: 0**n => 0, 2007-07-14 14:31:21 +00:00
test_float.rb * util.c (ruby_strtod): replaced by the implementation by David 2007-08-21 20:57:48 +00:00
test_fnmatch.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_gc.rb * Merge YARV 2006-12-31 15:02:22 +00:00
test_hash.rb * hash.c (rb_hash_delete_key): delete the entry without calling block. 2007-08-15 04:50:12 +00:00
test_ifunless.rb
test_integer.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_io.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_iterator.rb * test/ruby/test_iterator.rb (TestIterator::IterTest::each): 2007-11-09 04:46:58 +00:00
test_lambda.rb * parse.y (new_yield), compile.c (iseq_compile_each): fix 2007-06-05 17:26:00 +00:00
test_literal.rb * test/ruby/test_literal.rb: new test. 2007-02-23 05:23:33 +00:00
test_marshal.rb * marshal.c (r_bytes0): check if source has enough data. 2007-10-15 00:58:09 +00:00
test_math.rb
test_method.rb * eval.c (frame_func_id): return proper method ID. 2007-08-17 16:12:03 +00:00
test_mixed_unicode_escapes.rb * parse.y: patch, based on Nobu's, work to support \u escapes 2007-11-07 22:55:27 +00:00
test_module.rb * test/ruby/test_module.rb: fix to use Symbol instead of String 2007-02-08 13:24:11 +00:00
test_objectspace.rb
test_optimization.rb * test/ruby/test_optimization.rb: restore method before calling assert_equal. 2007-02-26 15:45:52 +00:00
test_pack.rb
test_path.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_pipe.rb * Merge YARV 2006-12-31 15:02:22 +00:00
test_primitive.rb * eval.c (rb_f_send): allow send/__send__ to call methods of all 2007-11-04 20:36:20 +00:00
test_proc.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_process.rb
test_rand.rb
test_range.rb * range.c (range_dumper): make uninitialized range dumpable. 2007-09-10 06:50:22 +00:00
test_readpartial.rb * test/ruby/test_readpartial.rb: tests are working on mswin32/cygwin. 2007-02-09 02:07:34 +00:00
test_regexp.rb added an assertion. 2007-08-05 04:06:08 +00:00
test_settracefunc.rb * test/ruby/test_settracefunc.rb: fixed tests for set_trace_func. 2007-11-12 15:38:10 +00:00
test_signal.rb * Merge YARV 2006-12-31 15:02:22 +00:00
test_sprintf.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_string.rb * test/ruby/test_string.rb (test_splice!): tests for [ruby-dev:31665]. 2007-08-28 06:19:11 +00:00
test_stringchar.rb
test_struct.rb
test_super.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_symbol.rb
test_system.rb use ML ref. for assertion message. 2007-11-18 07:18:56 +00:00
test_thread.rb * thread.c: fix Mutex to be interruptable lock. 2007-08-27 16:48:14 +00:00
test_time.rb * configure.in: check struct timespec, clock_gettime, utimensat, 2007-11-19 09:09:38 +00:00
test_trace.rb
test_unicode_escape.rb * parse.y: patch, based on Nobu's, work to support \u escapes 2007-11-07 22:55:27 +00:00
test_variable.rb * variable.c (rb_cvar_set): check whether class variable is 2007-10-03 06:48:06 +00:00
test_whileuntil.rb refine previous change. 2007-09-28 18:22:23 +00:00
test_yield.rb sentence.rb documented. 2007-08-18 17:04:06 +00:00
ut_eof.rb