[Rake-devel] Patches to fix [607] test failures

Kim Toms kim.toms at gmail.com
Tue Aug 28 22:23:08 EDT 2007


This does not have anything to do with the functional tests; only the ones
run by 'rake' in the checkout directory.

I include the text of the patch; the patch as an attachment, and the results
of running 'rake' on my system.

PATCH TEXT:
Index: test/test_filelist.rb
===================================================================
--- test/test_filelist.rb       (revision 607)
+++ test/test_filelist.rb       (working copy)
@@ -196,11 +196,11 @@

   def test_to_s_pending
     fl = FileList['testdata/abc.*']
-    assert_equal  %{testdata/abc.c testdata/abc.h testdata/abc.x}.sort,
fl.to_s.sort
+    assert_equal  %{testdata/abc.c testdata/abc.h testdata/abc.x},
fl.sort.to_s
   end

   def test_inspect_pending
-    fl = FileList['testdata/abc.*']
+    fl = FileList['testdata/abc.*'].sort
     assert_equal  %{["testdata/abc.c", "testdata/abc.h",
"testdata/abc.x"]}, fl.inspect
   end

Index: lib/rake.rb
===================================================================
--- lib/rake.rb (revision 607)
+++ lib/rake.rb (working copy)
@@ -1799,6 +1799,8 @@
         "Display the tasks (matching optional PATTERN) with descriptions,
then exit."],
       ['--trace',    '-t', GetoptLong::NO_ARGUMENT,
         "Turn on invoke/execute tracing, enable full backtrace."],
+      ['--usage',    '-u', GetoptLong::NO_ARGUMENT,
+        "Print single line usage message"],
       ['--verbose',  '-v', GetoptLong::NO_ARGUMENT,
         "Log message to standard output (default)."],
       ['--version',  '-V', GetoptLong::NO_ARGUMENT,
--------------------------------------------
Results of runnign 'rake:' on version 607 with this patch

kim at dreg:~/ruby/rake$ svn update
At revision 607.
kim at dreg:~/ruby/rake$ rake
(in /home/kim/ruby/rake)
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.3
/lib/rake/rake_test_loader
Started
.....................................................................................................................................................................................................................................................................................................
Finished in 9.703078 seconds.

293 tests, 821 assertions, 0 failures, 0 errors
kim at dreg:~/ruby/rake$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rake-devel/attachments/20070828/71d29217/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.rake
Type: application/octet-stream
Size: 1294 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20070828/71d29217/attachment.obj 


More information about the Rake-devel mailing list