71 } |
71 } |
72 } |
72 } |
73 #define TEST(arg) ::CheckL((arg), __LINE__) |
73 #define TEST(arg) ::CheckL((arg), __LINE__) |
74 #define TEST2(aValue, aExpected) ::CheckL(aValue, aExpected, __LINE__) |
74 #define TEST2(aValue, aExpected) ::CheckL(aValue, aExpected, __LINE__) |
75 |
75 |
|
76 // This function kills the C32exe.exe process. This commsdat process will |
|
77 // interfere with the test if not killed. In a nutshell, some of the test cases |
|
78 // will kill and then wait for 2 seconds and restart the centrep server |
|
79 // with --SoftReset option. During that 2 seconds wait sometimes C32exe.exe |
|
80 // will use centrep API, thus starting the server normally without --SoftReset. |
|
81 LOCAL_C void KillC32Exe() |
|
82 { |
|
83 _LIT( KC32ServerName, "c32exe"); |
|
84 KillProcess(KC32ServerName); // Don't need to check the return code, it always return KErrNone anyway. |
|
85 User::After(KGeneralDelay); |
|
86 } |
76 |
87 |
77 //This function restores the state of the files required for this test |
88 //This function restores the state of the files required for this test |
78 //Existing files are deleted and then the required files are copied |
89 //Existing files are deleted and then the required files are copied |
79 //back from the Z drive to the c drive |
90 //back from the Z drive to the c drive |
80 LOCAL_C void RestoreRFSTestFilesL(TRepositoryFileState aState) |
91 LOCAL_C void RestoreRFSTestFilesL(TRepositoryFileState aState) |