Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

rake test fails #3

Open
ujihisa opened this issue Aug 15, 2010 · 2 comments
Open

rake test fails #3

ujihisa opened this issue Aug 15, 2010 · 2 comments

Comments

@ujihisa
Copy link

ujihisa commented Aug 15, 2010

/Users/ujihisa/git/ruby192/local/bin/ruby test/markdown_test.rb
(in /Users/ujihisa/git/rpeg-markdown)
Loaded suite test/markdown_test
Started
...........................................F......
Finished in 0.059146 seconds.

  1. Failure:
    test_that_extension_methods_are_present_on_markdown_class(MarkdownTest) [test/markdown_test.rb:11]:
    Markdown class should respond to #to_html

50 tests, 62 assertions, 1 failures, 0 errors, 0 skips

Test run options: --seed 26628
rake aborted!
Command failed with status (1): [/Users/ujihisa/git/ruby192/local/bin/ruby ...]
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:993:in block in sh' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:1008:incall'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:1008:in sh' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:1092:insh'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:1027:in ruby' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:1092:inruby'
/Users/ujihisa/git/rpeg-markdown/Rakefile:99:in block in <top (required)>' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:632:incall'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:632:in block in execute' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:629:ineach'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:629:in execute' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:595:inblock in invoke_with_call_chain'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:588:ininvoke_with_call_chain'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:605:in block in invoke_prerequisites' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:602:ineach'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:602:in invoke_prerequisites' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:594:inblock in invoke_with_call_chain'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/monitor.rb:201:in mon_synchronize' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:588:ininvoke_with_call_chain'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:581:in invoke' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:2041:ininvoke_task'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:2019:in block (2 levels) in top_level' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:2019:ineach'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:2019:in block in top_level' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:2058:instandard_exception_handling'
/Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:2013:in top_level' /Users/ujihisa/git/ruby192/local/lib/ruby/1.9.1/rake.rb:1992:inrun'
/Users/ujihisa/git/ruby192/local/bin/rake:31:in `

'

that was on Mac OS X Snow Leopard and ruby 1.9.2

@andrewferk
Copy link

The "Command failed with status..." is an error with the integration of minitest and rake. not much you can do about it until there is a patch.

However, this error only occurs when there is a failed test, which should probably be looked at :)

@plehoux
Copy link

plehoux commented Oct 21, 2010

Do you still get this error?

Pistos pushed a commit to Libertree/parkdown that referenced this issue Sep 28, 2016
Closes Issue rtomayko#3.

Previously, certain kinds of input (e.g. Emphasis.txt from the
MDTest package) would send peg-markdown into a morass of backtracking
in parsing a Setext header (which begins with a list of Inlines).

We now check to make sure the text has the shape of a setext header
before parsing any Inlines.

This yields large performance gains across the board!
Many thanks to knieriem for pointing out the problem and suggesting a
(somewhat different) fix.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants