Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 91856 invoked from network); 9 Mar 2011 13:43:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 13:43:24 -0000 Received: (qmail 65713 invoked by uid 500); 9 Mar 2011 13:43:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 65685 invoked by uid 500); 9 Mar 2011 13:43:24 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 65678 invoked by uid 99); 9 Mar 2011 13:43:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 13:43:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 13:43:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 652703A0C20 for ; Wed, 9 Mar 2011 13:43:00 +0000 (UTC) Date: Wed, 9 Mar 2011 13:43:00 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <446353801.7885.1299678180410.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <419135573.4271.1299589139448.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (DERBY-5103) ProcedureInTriggerTest depends on implicit ordering of test cases MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-5103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004542#comment-13004542 ] Knut Anders Hatlen commented on DERBY-5103: ------------------------------------------- Thanks, Lily and Rick, for running the tests. I think there are multiple issues with this test that causes problems when the test cases are reordered: - some tests leave rows in tables that are shared between the test cases - some tests don't drop the triggers they create - static counters are not reset between the test cases > ProcedureInTriggerTest depends on implicit ordering of test cases > ----------------------------------------------------------------- > > Key: DERBY-5103 > URL: https://issues.apache.org/jira/browse/DERBY-5103 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.8.0.0 > Reporter: Knut Anders Hatlen > Attachments: rjall.out > > > If for example the test case testTriggerContainsSql is executed as the first test case, it will fail with the following error: > 1) testTriggerContainsSql(org.apache.derbyTesting.functionTests.tests.lang.ProcedureInTriggerTest)junit.framework.AssertionFailedError: expected:<2> but was:<0> > at org.apache.derbyTesting.functionTests.tests.lang.ProcedureInTriggerTest.checkAndResetGetConnectionProcCount(ProcedureInTriggerTest.java:514) > at org.apache.derbyTesting.functionTests.tests.lang.ProcedureInTriggerTest.testTriggerContainsSql(ProcedureInTriggerTest.java:120) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:21) > at junit.extensions.TestSetup.run(TestSetup.java:25) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > The test should either make the order of the test cases explicit or make the test cases independent of the order in which they run. > Seen in the nightly tests, for example here: http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/testlog/lin/1076682-suitesAll_diff.txt -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira