equal
deleted
inserted
replaced
644 __TRACE( KMessage,( _L( "CTestModule::EnumerateTestCasesL in" ) ) ); |
644 __TRACE( KMessage,( _L( "CTestModule::EnumerateTestCasesL in" ) ) ); |
645 |
645 |
646 // Get data from message |
646 // Get data from message |
647 TFileName config; |
647 TFileName config; |
648 TRAPD( res, aMessage.ReadL( 0, config ) ); |
648 TRAPD( res, aMessage.ReadL( 0, config ) ); |
649 if( res != KErrNone ) |
649 if(res == KErrDied) |
650 { |
650 { |
|
651 RDebug::Print(_L("CTestModule::EnumerateTestCasesL() Reading from RMessage ended with KErrDied. Client is not alive anymore and this request will be ignored")); |
|
652 return res; |
|
653 } |
|
654 else if( res != KErrNone ) |
|
655 { |
|
656 RDebug::Print(_L("CTestModule::EnumerateTestCasesL() #1 Panic client with [%d], res=[%d]"), EBadDescriptor, res); |
651 PanicClient( EBadDescriptor, aMessage ); |
657 PanicClient( EBadDescriptor, aMessage ); |
652 return res; |
658 return res; |
653 } |
659 } |
654 |
660 |
655 // Free old case data |
661 // Free old case data |
700 iTestCaseTitles.Append(title); |
706 iTestCaseTitles.Append(title); |
701 } |
707 } |
702 |
708 |
703 TPckgBuf<TInt> countPckg( testCases->Count() ); |
709 TPckgBuf<TInt> countPckg( testCases->Count() ); |
704 TRAP( res, aMessage.WriteL( 1, countPckg ) ); |
710 TRAP( res, aMessage.WriteL( 1, countPckg ) ); |
705 if( res != KErrNone ) |
711 if(res == KErrDied) |
706 { |
712 { |
|
713 RDebug::Print(_L("CTestModule::EnumerateTestCasesL() Writing to RMessage ended with KErrDied. Client is not alive anymore and this request will be ignored")); |
|
714 return res; |
|
715 } |
|
716 else if( res != KErrNone ) |
|
717 { |
|
718 RDebug::Print(_L("CTestModule::EnumerateTestCasesL() #2 Panic client with [%d], res=[%d], config=[%S]"), EBadDescriptor, res, &config); |
707 PanicClient( EBadDescriptor, aMessage ); |
719 PanicClient( EBadDescriptor, aMessage ); |
708 return res; |
720 return res; |
709 } |
721 } |
710 |
722 |
711 // All ok, complete message |
723 // All ok, complete message |