Merge from emacs-23; up to 2010-06-12T17:12:15Z!cyd@stupidchicken.com.
[bpt/emacs.git] / etc / compilation.txt
index aacc115..8e19222 100644 (file)
@@ -45,9 +45,9 @@ symbol: aix
 
 symbol: ant
 
-The regexps found on http://ant.apache.org/faq.html, and since integrated in
-both Emacsen, were hairy.  Why so many numbers for jikes -- is one a column
-number?
+The regexps found on http://ant.apache.org/faq.html, and since
+integrated in both Emacsen, were hairy.  The extra two numbers for
+jikes are the ending line and ending column.
 
     [javac] /src/DataBaseTestCase.java:27: unreported exception ...
     [javac] /src/DataBaseTestCase.java:49: warning: finally clause cannot complete normally
@@ -93,6 +93,43 @@ symbol: comma
 "foo.adb", line 2(11): warning: file name does not match ...
 "src/swapping.c", line 30.34: 1506-342 (W) "/*" detected in comment.
 
+* Cucumber
+
+symbol: cucumber
+
+Feature: This is an example for backtrace.
+
+  Scenario: undefined step  # features/cucumber.feature:3
+    Given this is undefined # features/cucumber.feature:4
+
+  Scenario: assertion false (Test::Unit)    # foo/bar.feature:6
+    Given this will generate 'assert false' # foo/bar.rb:1
+      <false> is not true. (Test::Unit::AssertionFailedError)
+      /home/gusev/.rvm/foo/bar.rb:48:in `assert_block'
+      /home/gusev/.rvm/foo/bar.rb:500:in `_wrap_assertion'
+      features/cucumber.feature:7:in `Given this will generate 'assert false''
+
+  Scenario: assertion false (RSpec)           # foo/bar.feature:9
+    Given this will generate 'should be_true' # foo/bar.rb:5
+      expected true to be false (Spec::Expectations::ExpectationNotMetError)
+      ./foo/bar/baz.rb:6:in `/^this will generate 'should be_true'$/'
+      foo/bar.feature:10:in `Given this will generate 'should be_true''
+
+  Scenario: backtrace in step definition # foo/bar.feature:12
+    Given this will generate backtrace   # foo/sbar.rb:9
+       (RuntimeError)
+      ./foo/bar.rb:10:in `/^this will generate backtrace$/'
+      foo/bar.feature:13:in `Given this will generate backtrace'
+
+Failing Scenarios:
+cucumber foo/cucumber.feature:6 # Scenario: assertion false (Test::Unit)
+cucumber foo/cucumber.feature:9 # Scenario: assertion false (RSpec)
+cucumber foo/cucumber.feature:12 # Scenario: backtrace in step definition
+cucumber foo/cucumber.feature:15 # Scenario: deeep backtrace in step definition
+
+5 scenarios (4 failed, 1 undefined)
+5 steps (4 failed, 1 undefined)
+0m0.007s
 
 * EDG C/C++
 
@@ -196,7 +233,7 @@ symbol: gcc-include
 The last file, i.e. the one you are compiling, is the interesting one.
 
 In file included from /usr/include/c++/3.3/backward/warn.h:4,
-                 from /usr/include/c++/3.3/backward/iostream.h:31,
+                 from /usr/include/c++/3.3/backward/iostream.h:31:0,
                  from test_clt.cc:1:
 
 
@@ -210,6 +247,7 @@ foo.c:8: message
 foo/bar.py:8: FutureWarning message
 foo.py:8: RuntimeWarning message
 foo.c:8:I: message
+foo.c:8.23: note: message
 foo.c:8.23: info: message
 foo.c:8:23:information: message
 foo.c:8.23-45: Informational: message
@@ -240,6 +278,13 @@ makepp: bla bla `/foo/Makeppfile:12' bla
 makepp: bla bla `/foo/bar.c' and `/foo/bar.h'
 
 
+* maven 2.0.9
+
+symbol: maven
+
+FooBar.java:[111,53] no interface expected here
+
+
 * MIPS lint; looks good for SunPro lint also
 
 symbols: mips-1 mips-2
@@ -261,6 +306,7 @@ made it more strict about the error message that follows.
 
 keyboard handler.c(537) : warning C4005: 'min' : macro redefinition
 d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'
+d:\tmp\test.c(1145) : see declaration of 'nsRefPtr'
 
 
 * Open Watcom
@@ -292,11 +338,67 @@ PCC-02151: line 21 column 40 file /usr/src/sb/ODBI_BHP.hpp:
 
 symbol: perl
 
+The second sample, from the Perl-Glib module, is a Glib message put
+through Perl warn() to get "at FILENAME line N".
+
 syntax error at automake line 922, near "':'"
 Died at test.pl line 27.
 store::odrecall('File_A', 'x2') called at store.pm line 90
        (in cleanup) something bad at foo.pl line 3 during global destruction.
 
+GLib-GObject-WARNING **: /build/buildd/glib2.0-2.14.5/gobject/gsignal.c:1741: instance `0x8206790' has no handler with id `1234' at t-compilation-perl-gtk.pl line 3.
+
+* PHP
+
+symbol: php
+
+Parse error: parse error, unexpected $ in main.php on line 59
+Fatal error: Call to undefined function: mysql_pconnect() in db.inc on line 66
+
+* Ruby
+
+symbol: ruby
+
+plain-exception.rb:7:in `fun': unhandled exception
+       from plain-exception.rb:3:in `proxy'
+       from plain-exception.rb:12
+
+* Ruby (Test::Unit)
+
+symbol: ruby-Test::Unit
+
+Loaded suite examples/test-unit
+Started
+FFFE
+Finished in 0.023173 seconds.
+
+  1) Failure:
+test_a_deep_assert(BacktracesTest)
+    [examples/test-unit.rb:28:in `here_is_a_deep_assert'
+     examples/test-unit.rb:19:in `test_a_deep_assert']:
+<false> is not true.
+
+  2) Failure:
+test_assert(BacktracesTest) [examples/test-unit.rb:5]:
+<false> is not true.
+
+  3) Failure:
+test_assert_raise(BacktracesTest) [examples/test-unit.rb:9]:
+Exception raised:
+Class: <RuntimeError>
+Message: <"">
+---Backtrace---
+examples/test-unit.rb:10:in `test_assert_raise'
+examples/test-unit.rb:9:in `test_assert_raise'
+---------------
+
+  4) Error:
+test_backtrace(BacktracesTest):
+NoMethodError: undefined method `not_exists' for nil:NilClass
+    examples/test-unit.rb:24:in `some_function_call_from_nil'
+    examples/test-unit.rb:15:in `test_backtrace'
+
+4 tests, 3 assertions, 3 failures, 1 errors
 
 * RXP
 
@@ -355,11 +457,11 @@ bloofle defined( /users/wolfgang/foo.c(4) ), but never used
 
 * GCOV (test coverage program)
 
-symbol: gcov-file gcov-bb-file gcov-never-called-line gcov-called-line 
+symbol: gcov-file gcov-bb-file gcov-never-called-line gcov-called-line
 
         -:    0:Source:foo.c
         -:    0:Object:foo.bb
-        -:    1:/* $ gcc -fprofile-arcs -ftest-coverage foo.c 
+        -:    1:/* $ gcc -fprofile-arcs -ftest-coverage foo.c
         -:    2:   $ ./a.out
         -:    3:   $ gcov foo.c
         -:    4:   LANG=C gcov foo.c
@@ -373,15 +475,15 @@ symbol: gcov-file gcov-bb-file gcov-never-called-line gcov-called-line
         1:   12:    r = 1;
     #####:   13:  else if (argc == 2)
     #####:   14:    r = 2;
-        -:   15:  else 
+        -:   15:  else
     #####:   16:    r = 0;
         1:   17:  return r;
-        -:   18:} 
+        -:   18:}
 
 
 * Podchecker error messages, per Pod::Checker
 
-symbol: compilation-perl--Pod::Checker
+symbol: perl--Pod::Checker
 
 *** ERROR: Spurious text after =cut at line 193 in file foo.pm
 *** ERROR: =over on line 37 without closing =back at line EOF in file bar.pm
@@ -390,21 +492,21 @@ symbol: compilation-perl--Pod::Checker
 
 * Perl Test module error messages
 
-symbol: compilation-perl--Test
+symbol: perl--Test
 
 # Failed test 1 in foo.t at line 6
 
 
 * Perl Test::Harness output
 
-symbol: compilation-perl--Test::Harness
+symbol: perl--Test::Harness
 
 NOK 1# Test 1 got: "1234" (t/foo.t at line 46)
 
 
 * Perl HTML::Lint::Error::as_string()
 
-symbol: compilation-weblint
+symbol: weblint
 
 index.html (13:1) Unknown element <fdjsk>
 
@@ -446,8 +548,7 @@ Compilation segmentation fault at Thu Jul 13 10:55:49
 Compilation finished at Thu Jul 21 15:02:15
 
 \f
-Copyright (C) 2004, 2005, 2006, 2007, 2008
-Free Software Foundation, Inc.
+Copyright (C) 2004-2011  Free Software Foundation, Inc.
 
 COPYING PERMISSIONS: