Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 41141 invoked from network); 11 Mar 2011 12:32:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Mar 2011 12:32:21 -0000 Received: (qmail 11753 invoked by uid 500); 11 Mar 2011 12:32:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 11732 invoked by uid 500); 11 Mar 2011 12:32:21 -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 11725 invoked by uid 99); 11 Mar 2011 12:32:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 12:32:21 +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; Fri, 11 Mar 2011 12:32:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 728813A3B98 for ; Fri, 11 Mar 2011 12:31:59 +0000 (UTC) Date: Fri, 11 Mar 2011 12:31:59 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: <977902201.13267.1299846719465.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <559099647.4267.1299588539430.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (DERBY-5102) GrantRevokeDDLTest 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 [ https://issues.apache.org/jira/browse/DERBY-5102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-5102: -------------------------------------- Attachment: derby-5102-1a.diff The attached patch fixes the first failure mentioned in the description by dropping the schema created by testMinimumSelectPrivilegeRequirement upon completion. Committed revision 1080548. > GrantRevokeDDLTest depends on implicit ordering of test cases > ------------------------------------------------------------- > > Key: DERBY-5102 > URL: https://issues.apache.org/jira/browse/DERBY-5102 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.8.0.0 > Reporter: Knut Anders Hatlen > Attachments: derby-5102-1a.diff > > > If for example the test case testMinimumSelectPrivilegeRequirement runs before testGrantRevokeDDL2, the test will fail with the following error: > 4) testGrantRevokeDDL2(org.apache.derbyTesting.functionTests.tests.lang.GrantRevokeDDLTest)java.sql.SQLException: Schema 'USER1' already exists. > at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(SQLExceptionFactory40.java:98) > at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Util.java:256) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(TransactionResourceImpl.java:396) > at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:348) > at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2290) > at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1334) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:630) > at org.apache.derby.impl.jdbc.EmbedStatement.executeUpdate(EmbedStatement.java:179) > at org.apache.derbyTesting.functionTests.tests.lang.GrantRevokeDDLTest.testGrantRevokeDDL2(GrantRevokeDDLTest.java:6540) > Or, if testRevokeDropsFKWithSharedConglom runs before testGrantRevokeDDL, the test will fail like this: > 7) testGrantRevokeDDL(org.apache.derbyTesting.functionTests.tests.lang.GrantRevokeDDLTest)junit.framework.AssertionFailedError: Column value mismatch @ column 'SCHEMANAME', row 4: > Expected: >SATHEESH< > Found: >MAMTA1< > at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:1213) > at org.apache.derbyTesting.junit.JDBC.assertRowInResultSet(JDBC.java:1125) > at org.apache.derbyTesting.junit.JDBC.assertFullResultSetMinion(JDBC.java:1012) > at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:935) > at org.apache.derbyTesting.junit.JDBC.assertFullResultSet(JDBC.java:892) > at org.apache.derbyTesting.functionTests.tests.lang.GrantRevokeDDLTest.testGrantRevokeDDL(GrantRevokeDDLTest.java:397) > 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