778 |
778 |
779 //Create the directory c:\private\10202be9\ if it does not exist. |
779 //Create the directory c:\private\10202be9\ if it does not exist. |
780 _LIT(KExecutableFileName, "t_logapi_helper.exe"); |
780 _LIT(KExecutableFileName, "t_logapi_helper.exe"); |
781 _LIT(KCommandParameters, "c:\\private\\10202be9\\;c:\\private\\10202be9\\101f401d.txt;3"); |
781 _LIT(KCommandParameters, "c:\\private\\10202be9\\;c:\\private\\10202be9\\101f401d.txt;3"); |
782 RProcess process; |
782 RProcess process; |
|
783 TRequestStatus processWaitStatus; |
783 TInt r = process.Create(KExecutableFileName, KCommandParameters); |
784 TInt r = process.Create(KExecutableFileName, KCommandParameters); |
|
785 TEST(r == KErrNone); |
|
786 process.Logon(processWaitStatus); |
784 process.Resume(); |
787 process.Resume(); |
785 process.Close(); |
788 User::WaitForRequest(processWaitStatus); |
786 User::After(1000); |
789 TEST(processWaitStatus.Int() == KErrNone); |
|
790 process.Close(); |
787 |
791 |
788 //copy the repository file to the folder 10202be9 |
792 //copy the repository file to the folder 10202be9 |
789 _LIT(KCommandParameters1, "z:\\test\\101f401d_TEST.txt;c:\\private\\10202be9\\101f401d.txt;0"); |
793 _LIT(KCommandParameters1, "z:\\test\\101f401d_TEST.txt;c:\\private\\10202be9\\101f401d.txt;0"); |
790 r = process.Create(KExecutableFileName, KCommandParameters1); |
794 r = process.Create(KExecutableFileName, KCommandParameters1); |
|
795 TEST(r == KErrNone); |
|
796 process.Logon(processWaitStatus); |
791 process.Resume(); |
797 process.Resume(); |
792 process.Close(); |
798 User::WaitForRequest(processWaitStatus); |
793 User::After(1000); |
799 TEST(processWaitStatus.Int() == KErrNone); |
|
800 process.Close(); |
794 |
801 |
795 TestUtils::DeleteDatabaseL(); |
802 TestUtils::DeleteDatabaseL(); |
796 |
803 |
797 //Get the config settings. |
804 //Get the config settings. |
798 config.iMaxEventAge = 0; |
805 config.iMaxEventAge = 0; |
828 TEST(contactNameFormat == 1); |
835 TEST(contactNameFormat == 1); |
829 |
836 |
830 //delete the repository file c:\\private\\10202be9\\101f401d.txt. |
837 //delete the repository file c:\\private\\10202be9\\101f401d.txt. |
831 _LIT(KCommandParameters2, "c:\\private\\10202be9\\101f401d.txt;private\\10202be9\101f401d.txt;2"); |
838 _LIT(KCommandParameters2, "c:\\private\\10202be9\\101f401d.txt;private\\10202be9\101f401d.txt;2"); |
832 r = process.Create(KExecutableFileName, KCommandParameters2); |
839 r = process.Create(KExecutableFileName, KCommandParameters2); |
|
840 TEST(r == KErrNone); |
|
841 process.Logon(processWaitStatus); |
833 process.Resume(); |
842 process.Resume(); |
834 process.Close(); |
843 User::WaitForRequest(processWaitStatus); |
835 User::After(1000); |
844 TEST(processWaitStatus.Int() == KErrNone); |
|
845 process.Close(); |
|
846 |
836 theLog.Write(_L8("Deleting the Log engine database... \n")); |
847 theLog.Write(_L8("Deleting the Log engine database... \n")); |
837 TestUtils::DeleteDatabaseL(); |
848 TestUtils::DeleteDatabaseL(); |
838 TheTest.Next(_L("Delay of 2 min, the necessary time to central repository to unload its cache... ")); |
849 TheTest.Next(_L("Delay of 2 min, the necessary time to central repository to unload its cache... ")); |
839 User::After(125000000); // Delay to time to cenrep to unload its cache. |
850 User::After(125000000); // Delay to time to cenrep to unload its cache. |
840 } |
851 } |