[#5143] Win32API segfault in 1.8.3p1 — Nathaniel Talbott <ntalbott@...>
I'm on Windows XP, using VC7 to compile. I've previously gotten a good
Hi,
[#5151] COPY and INSTALL on Windows — Nathaniel Talbott <ntalbott@...>
1.8.3p1 has changed the defaults for the COPY and INSTALL Makefile
[#5152] 1.8.3 p1 segfault in array.c- bccwin32 - bcc5.5 (free) compiler bug — "daz" <dooby@...10.karoo.co.uk>
[#5160] Alternative for win32\ifchange.bat — "daz" <dooby@...10.karoo.co.uk>
[#5179] Cannot build HEAD on OS X 10.4.1 — Eric Hodel <drbrain@...7.net>
Somehow the rb_fd_init macro is conflicting with the definition of
Hi,
Hi,
[#5188] Re: IO#read — Yukihiro Matsumoto <matz@...>
Hi,
[#5190] Resolv and TTL — Eric Hodel <drbrain@...7.net>
I would like to retrieve the TTL values from Resolv, but they seem to
[#5206] Object#inspect() doesn't return; uses 100% cpu — Andrew Walrond <andrew@...>
Is this something I could have caused by overriding some method on the
[#5211] ruby 1.8 CVS do not work with --enable-pthread configure option — noreply@...
Bugs item #2038, was opened at 2005-06-16 13:57
[#5215] Hackers Guide Translation Request! — "Charles E. Thornton" <ruby-core@...>
I have recently discovered RUBY and want to understand it a deep level -
[#5219] Segmentation fault in timeout.rb — Michel Pastor <K@...>
Hi,
On Fri, 17 Jun 2005 05:03:18 +0900
Hi,
On Fri, 17 Jun 2005 11:51:07 +0900
Hi,
On Sat, 18 Jun 2005 10:28:53 +0900
Hi,
On Sun, 19 Jun 2005 23:05:56 +0900
[#5233] event_hook shows weirdness when invoked on mixed in methods — Ryan Davis <ryand-ruby@...>
The following attachment, when run, shows the following behavior:
[#5264] XMLRPC vulnerabilities? — Hugh Sasse <hgs@...>
I've just seen this (by RSS)
[#5267] RubyUnit Test Ordering — Jordan Gilliland <jordan@...>
I'm using ruby 1.8.2 (2004-12-25) [i686-linux] and I've noticed that the
[#5277] Macros in win32.h — james@...
win32.h defines a load of macros. This means any C or C++ program which embeds
[#5288] committing rdoc additions corrections to head? — Ryan Davis <ryand-ruby@...>
There is some discussion on ruby-doc about people documenting core
[#5296] Subversion — Shugo Maeda <shugo@...>
Hi,
Shugo Maeda wrote:
Curt Hibbs wrote:
On 6/30/05, Nikolai Weibull
Austin Ziegler wrote:
On 6/30/05, Nikolai Weibull
Austin Ziegler wrote:
On 6/30/05, mathew <meta@pobox.com> wrote:
Austin Ziegler wrote:
On 7/1/05, mathew <meta@pobox.com> wrote:
Austin Ziegler wrote:
On 7/1/05, Nikolai Weibull
Austin Ziegler wrote:
On 7/1/05, mathew <meta@pobox.com> wrote:
Austin Ziegler wrote:
On Thursday 30 June 2005 19:19, mathew wrote:
"Sean E. Russell" <ser@germane-software.com> writes:
On 30 Jun 2005, at 08:19, Shugo Maeda wrote:
Hi,
[PATCH] test case directory
Hi,
I'd like to separate working directory from test cases. What
about this patch?
* common.mk (test-all): separate test case directory from pwd.
* lib/test/unit/autorunner.rb (options): added --basedir, --workdir
and --load-path options.
* lib/test/unit/collector/dir.rb (recursive_collect, collect_file):
base directory support.
Index: common.mk
===================================================================
RCS file: /cvs/ruby/src/ruby/common.mk,v
retrieving revision 1.15
diff -U2 -p -r1.15 common.mk
--- common.mk 20 Apr 2005 14:22:57 -0000 1.15
+++ common.mk 10 Jun 2005 14:25:06 -0000
@@ -63,4 +63,7 @@ SCRIPT_ARGS = --dest-dir="$(DESTDIR)"
EXTMK_ARGS = $(SCRIPT_ARGS) --extout="$(EXTOUT)" --extension $(EXTS) --extstatic $(EXTSTATIC) --
+TESTSDIR = $(srcdir)/test
+TESTWORKDIR = testwork
+
all: $(MKFILES) $(PREP) $(RBCONFIG) $(LIBRUBY)
@$(MINIRUBY) $(srcdir)/ext/extmk.rb $(EXTMK_ARGS)
@@ -149,5 +152,5 @@ test: miniruby$(EXEEXT) $(RBCONFIG) $(PR
test-all:
- $(RUNRUBY) -C "$(srcdir)/test" runner.rb --runner=$(TESTUI) $(TESTS)
+ $(RUNRUBY) "$(srcdir)/test/runner.rb" --basedir="$(TESTSDIR)" --runner=$(TESTUI) $(TESTS)
extconf:
Index: lib/test/unit/autorunner.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/lib/test/unit/autorunner.rb,v
retrieving revision 1.12
diff -U2 -p -r1.12 autorunner.rb
--- lib/test/unit/autorunner.rb 17 Feb 2005 04:50:48 -0000 1.12
+++ lib/test/unit/autorunner.rb 10 Jun 2005 15:08:37 -0000
@@ -65,9 +65,11 @@ module Test
c.pattern.concat(r.pattern) if(r.pattern)
c.exclude.concat(r.exclude) if(r.exclude)
+ c.base = r.base
+ $:.unshift(r.base) if r.base
c.collect(*(r.to_run.empty? ? ['.'] : r.to_run))
end,
}
- attr_reader :suite
+ attr_reader :suite, :base, :workdir
attr_accessor :output_level, :filters, :to_run, :pattern, :exclude
attr_writer :runner, :collector
@@ -111,4 +113,12 @@ module Test
if(@standalone)
+ o.on('-b', '--basedir=DIR', "Base directory of test suits.") do |b|
+ @base = b
+ end
+
+ o.on('-w', '--workdir=DIR', "Working directory to run tests.") do |w|
+ @workdir = w
+ end
+
o.on('-a', '--add=TORUN', Array,
"Add TORUN to the list of things to run;",
@@ -154,4 +164,9 @@ module Test
end
+ o.on('-I', "--load-path=DIR[#{File::PATH_SEPARATOR}DIR...]",
+ "Appends directory list to $LOAD_PATH.") do |dirs|
+ $LOAD_PATH.concat(dirs.split(File::PATH_SEPARATOR))
+ end
+
o.on('-v', '--verbose=[LEVEL]', OUTPUT_LEVELS,
"Set the output level (default is verbose).",
@@ -198,4 +213,5 @@ module Test
@suite = @collector[self]
result = @runner[self] or return false
+ Dir.chdir(@workdir) if @workdir
result.run(@suite, @output_level).passed?
end
Index: lib/test/unit/collector/dir.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/lib/test/unit/collector/dir.rb,v
retrieving revision 1.12
diff -U2 -p -r1.12 dir.rb
--- lib/test/unit/collector/dir.rb 17 Feb 2005 04:50:48 -0000 1.12
+++ lib/test/unit/collector/dir.rb 10 Jun 2005 15:07:36 -0000
@@ -9,4 +9,5 @@ module Test
attr_reader :pattern, :exclude
+ attr_accessor :base
def initialize(dir=::Dir, file=::File, object_space=::ObjectSpace, req=nil)
@@ -48,9 +49,10 @@ module Test
def recursive_collect(name, already_gathered)
sub_suites = []
- if(@file.directory?(name))
- @dir.entries(name).each do |e|
+ path = @base ? @file.join(@base, name) : name
+ if @file.directory?(path)
+ @dir.entries(path).each do |e|
next if(e == '.' || e == '..')
e_name = @file.join(name, e)
- if(@file.directory?(e_name))
+ if @file.directory?(@base ? @file.join(@base, e_name) : e_name)
next if /\ACVS\z/ =~ e
sub_suite = recursive_collect(e_name, already_gathered)
@@ -76,5 +78,5 @@ module Test
def collect_file(name, suites, already_gathered)
- dir = File.dirname(File.expand_path(name))
+ dir = File.dirname(File.expand_path(name, @base))
$:.unshift(dir)
if(@req)
--
Nobu Nakada