test errors on rake project (gem)

Discussion in 'Ruby' started by thebox, Feb 9, 2007.

  1. thebox

    thebox Guest

    I'm not sure this is meaningful or if it makes any sense, but just for
    curiosity I tried to execute rake tests against the rake gem itself
    and I got a few errors (to be precise 3 failures and 5 errors in
    total).

    First of all, my ruby version:

    C:\ruby\lib\ruby\gems\1.8\gems\rake-0.7.1>ruby -v
    ruby 1.8.4 (2005-12-24) [i386-mswin32]

    And this is the result of executing the tests:

    C:\ruby\lib\ruby\gems\1.8\gems\rake-0.7.1>rake --trace
    (in C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1)
    ** Invoke default (first_time)
    ** Invoke test_all (first_time)
    ** Invoke testdata (first_time)
    ** Execute testdata
    mkdir -p testdata
    ** Execute test_all
    C:/ruby/bin/ruby -w -Ilib "C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/
    lib/rake/rake_test_loader.rb" "test/test_clean.rb"
    "test/test_definitions.rb" "test/test_earlytime.rb" "test/
    test_filelist.rb" "test/test_fileutils.rb" "test/test_file_cre
    ation_task.rb" "test/test_file_task.rb" "test/test_ftp.rb" "test/
    test_makefile_loader.rb" "test/test_multitask.rb" "test
    /test_namespace.rb" "test/test_package_task.rb" "test/test_pathmap.rb"
    "test/test_rake.rb" "test/test_require.rb" "test/
    test_rules.rb" "test/test_tasks.rb" "test/test_task_manager.rb" "test/
    test_test_task.rb" "test/contrib/testsys.rb" "test
    /functional.rb"
    UNABLE TO RUN FUNCTIONAL TESTS
    No Session Found
    Loaded suite C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
    rake_test_loader
    Started
    .........E.E........................................................-e:
    1:in `exit': no implicit conversion from nil to in
    teger (TypeError)
    from -e:1
    FE.EF.........................................FE...................................................
    Finished in 11.265 seconds.

    1) Error:
    test_create(TestEarlyTime):
    ArgumentError: argument out of range
    ./test/test_earlytime.rb:9:in `mktime'
    ./test/test_earlytime.rb:9:in `test_create'

    2) Error:
    test_original_time_compare_is_not_messed_up(TestEarlyTime):
    ArgumentError: argument out of range
    ./test/test_earlytime.rb:24:in `mktime'
    ./test/test_earlytime.rb:24:in
    `test_original_time_compare_is_not_messed_up'

    3) Failure:
    test_ruby(TestFileUtils)
    [./test/test_fileutils.rb:116:in `test_ruby'
    ./lib/rake.rb:729:in `sh'
    ./lib/rake.rb:812:in `sh'
    ./lib/rake.rb:807:in `sh'
    ./lib/rake.rb:747:in `ruby'
    ./lib/rake.rb:812:in `ruby'
    ./lib/rake.rb:807:in `ruby'
    ./test/test_fileutils.rb:114:in `test_ruby'
    ./lib/rake.rb:831:in `verbose'
    ./test/test_fileutils.rb:110:in `test_ruby']:
    <123> expected but was
    <1>.

    4) Error:
    test_sh(TestFileUtils):
    RuntimeError: Command failed with status (1): [test/shellcommand.rb]
    ./lib/rake.rb:722:in `sh'
    ./lib/rake.rb:729:in `sh'
    ./lib/rake.rb:812:in `sh'
    ./lib/rake.rb:807:in `sh'
    ./test/test_fileutils.rb:71:in `test_sh'
    ./lib/rake.rb:831:in `verbose'
    ./test/test_fileutils.rb:71:in `test_sh'

    5) Error:
    test_sh_multiple_arguments(TestFileUtils):
    RuntimeError: Command failed with status (1): [test $RAKE_TEST_SH =
    someval]
    ./lib/rake.rb:722:in `sh'
    ./lib/rake.rb:729:in `sh'
    ./lib/rake.rb:812:in `sh'
    ./lib/rake.rb:807:in `sh'
    ./test/test_fileutils.rb:78:in `test_sh_multiple_arguments'
    ./lib/rake.rb:831:in `verbose'
    ./test/test_fileutils.rb:78:in `test_sh_multiple_arguments'

    6) Failure:
    test_sh_special_handling(TestFileUtils)
    [./test/test_fileutils.rb:96:in `test_sh_special_handling'
    ./lib/rake.rb:729:in `sh'
    ./lib/rake.rb:812:in `sh'
    ./lib/rake.rb:807:in `sh'
    ./test/test_fileutils.rb:95:in `test_sh_special_handling'
    ./lib/rake.rb:831:in `verbose'
    ./test/test_fileutils.rb:94:in `test_sh_special_handling']:
    <false> is not true.

    7) Failure:
    test_each_dir_parent(TestRake) [./test/test_rake.rb:11]:
    <["c:/a/b", "c:/a", "c:"]> expected but was
    <["c:/a/b", "c:/a", "c:/"]>.

    8) Error:
    test_can_load_rake_library(TestRequire):
    LoadError: Can't find test2
    ./lib/rake.rb:1813:in `rake_require'
    ./test/test_require.rb:11:in `test_can_load_rake_library'

    166 tests, 515 assertions, 3 failures, 5 errors
    rake aborted!
    Command failed with status (1): [C:/ruby/bin/ruby -w -Ilib "C:/ruby/
    lib/rub...]
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:722:in `sh'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:729:in `sh'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `sh'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:747:in `ruby'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `ruby'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:807:in `ruby'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:117:in
    `define'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:831:in `verbose'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/testtask.rb:102:in
    `define'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `execute'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
    C:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
    `invoke_prerequisites'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
    `invoke_prerequisites'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
    C:/ruby/lib/ruby/1.8/thread.rb:135:in `synchronize'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
    C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
    C:/ruby/bin/rake.bat:25

    Ciao
    Giuliano
    thebox, Feb 9, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joe Van Dyk
    Replies:
    2
    Views:
    94
    Damphyr
    Jan 31, 2006
  2. Austin 7873
    Replies:
    5
    Views:
    178
    Eric Hodel
    Jan 27, 2007
  3. peppermonkey
    Replies:
    1
    Views:
    227
    Gregory Brown
    Feb 10, 2007
  4. Adam Anderson
    Replies:
    1
    Views:
    121
    Adam Anderson
    Sep 19, 2007
  5. James Mead
    Replies:
    0
    Views:
    136
    James Mead
    Jan 15, 2008
Loading...

Share This Page