コード例 #1
0
STATUS DdmTestChaosFile::StartTest(void *context) 
{
	ChaosFile cf0(tcf_names[0]);

	if (cf0.IsValid())
	{
		printf("Persistence check OK!\n");
		return OK;
	}	
	TestCreation();
	TestClose();
	TestOpen();
		
	for (int i=0; i < 30; ++i)
	{
		if (i != 4)
		{
			printf("Closing #%d...", i);
			if (OK == cf[i]->Close())
				printf("Sucess!\n");
			else
				printf("Failed!\n");
		}
	}

	TestReadWrite();
		
	return OK;
}
コード例 #2
0
    void DriIncludeDirListTest(bool silentMode)
    {
        TestCreation(silentMode);
        
        TestAdd(silentMode);
        TestFind(silentMode);

        if (!silentMode) std::cout << "DriIncludeDirList test: OK" << std::endl;
    }
コード例 #3
0
ファイル: t_rwlock.cpp プロジェクト: kuailexs/symbiandump-os1
TInt E32Main()
    {
	Test.Title();
	Test.Start(_L("RReadWriteLock Testing"));

	TestCreation();
	TestWriterPriority();
	TestAlternatePriority();
	TestReaderPriority();
	TestTryLock();
	TestUpgrade();
	TestDowngrade();
	TestPanics();

	Test.End();
	return KErrNone;
    }
コード例 #4
0
 void QHostAddressTests()
 {
     TestCreation();
     TestOperators();
     TestProtocol();
 }