diff -r d6ef85bc5971 -r a7ba600cb39d persistentstorage/sql/TEST/t_sqlenvdestroy.cpp --- a/persistentstorage/sql/TEST/t_sqlenvdestroy.cpp Fri May 14 17:36:33 2010 +0300 +++ b/persistentstorage/sql/TEST/t_sqlenvdestroy.cpp Thu May 27 14:29:47 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -36,6 +36,8 @@ _LIT(KDb7, "c:\\private\\10281e17\\[98765432]t_invobject.db"); _LIT(KDb8, "c:\\private\\10281e17\\[98765432]t_2defaultpolicies.db"); +_LIT(KPrivateSubDir, "c:\\private\\10281e17\\cfg-TestDir.db\\"); + /////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// //Test macros and functions @@ -83,6 +85,14 @@ DoDeleteFile(fs, KDb7); DoDeleteFile(fs, KDb8); + //Create a subdir in the private datacage. The SQL production code should properly detects + //KPrivateSubDir is a directory not a database file + err = fs.RmDir(KPrivateSubDir); + if(err != KErrNone && err != KErrNotFound) + { + TheTest.Printf(_L("Error %d deleting \"%S\" directory.\n"), err, &KPrivateSubDir); + } + fs.Close(); }