1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
33 _LIT(KDb4, "c:\\private\\10281e17\\[98765432]t_nocollation.db"); |
33 _LIT(KDb4, "c:\\private\\10281e17\\[98765432]t_nocollation.db"); |
34 _LIT(KDb5, "c:\\private\\10281e17\\[98765432]t_longcollation.db"); |
34 _LIT(KDb5, "c:\\private\\10281e17\\[98765432]t_longcollation.db"); |
35 _LIT(KDb6, "c:\\private\\10281e17\\[98765432]t_nodefaultpolicy.db"); |
35 _LIT(KDb6, "c:\\private\\10281e17\\[98765432]t_nodefaultpolicy.db"); |
36 _LIT(KDb7, "c:\\private\\10281e17\\[98765432]t_invobject.db"); |
36 _LIT(KDb7, "c:\\private\\10281e17\\[98765432]t_invobject.db"); |
37 _LIT(KDb8, "c:\\private\\10281e17\\[98765432]t_2defaultpolicies.db"); |
37 _LIT(KDb8, "c:\\private\\10281e17\\[98765432]t_2defaultpolicies.db"); |
|
38 |
|
39 _LIT(KPrivateSubDir, "c:\\private\\10281e17\\TestDir.db"); |
38 |
40 |
39 /////////////////////////////////////////////////////////////////////////////////////// |
41 /////////////////////////////////////////////////////////////////////////////////////// |
40 /////////////////////////////////////////////////////////////////////////////////////// |
42 /////////////////////////////////////////////////////////////////////////////////////// |
41 //Test macros and functions |
43 //Test macros and functions |
42 static void Check(TInt aValue, TInt aExpected, TInt aLine) |
44 static void Check(TInt aValue, TInt aExpected, TInt aLine) |
81 DoDeleteFile(fs, KDb5); |
83 DoDeleteFile(fs, KDb5); |
82 DoDeleteFile(fs, KDb6); |
84 DoDeleteFile(fs, KDb6); |
83 DoDeleteFile(fs, KDb7); |
85 DoDeleteFile(fs, KDb7); |
84 DoDeleteFile(fs, KDb8); |
86 DoDeleteFile(fs, KDb8); |
85 |
87 |
|
88 //Create a subdir in the private datacage. The SQL production code should properly detects |
|
89 //KPrivateSubDir is a directory not a database file |
|
90 err = fs.RmDir(KPrivateSubDir); |
|
91 if(err != KErrNone && err != KErrNotFound) |
|
92 { |
|
93 TheTest.Printf(_L("Error %d deleting \"%S\" directory.\n"), err, &KPrivateSubDir); |
|
94 } |
|
95 |
86 fs.Close(); |
96 fs.Close(); |
87 } |
97 } |
88 |
98 |
89 TInt E32Main() |
99 TInt E32Main() |
90 { |
100 { |