You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2016/03/31 10:13:26 UTC

svn commit: r1737189 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/Sed.java

Author: kahatlen
Date: Thu Mar 31 08:13:26 2016
New Revision: 1737189

URL: http://svn.apache.org/viewvc?rev=1737189&view=rev
Log:
DERBY-6881: Test failures with JDK 9-ea b111

Some stack traces are formatted differently in JDK 9. For example,
what used to look like this
  at java.io.FileInputStream.open0(Native Method)
now looks like this
  at java.io.FileInputStream.open0(java.base@9-ea/Native Method)

The old test harness filters out stack traces to get stable results in
the canon-based tests, but it doesn't recognize the new look of the
stack traces.

This patch updates the regular expression that filters out native
methods from stack traces, so that it also recognizes the new format.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/Sed.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/Sed.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/Sed.java?rev=1737189&r1=1737188&r2=1737189&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/Sed.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/Sed.java Thu Mar 31 08:13:26 2016
@@ -87,7 +87,7 @@ public class Sed
         deleteLines.addElement("^.*at java.*\\<init\\>\\(.*\\(Compiled Code\\)\\)$");
         deleteLines.addElement("^(.*at .*)\\(Interpreted Code\\)$");
         deleteLines.addElement("^(.*at .*)\\(Unknown Source\\)$");
-        deleteLines.addElement("^(.*at .*)\\(Native Method\\)$");
+        deleteLines.addElement("^(.*at .*)\\(.*Native Method\\)$");
         deleteLines.addElement("^\\tat $"); // rare case of incomplete stack trace line
         deleteLines.addElement("optimizer estimated cost");
         deleteLines.addElement("optimizer estimated row count");