kerneltest/e32test/pccd/t_setkey.cpp
changeset 121 661475905584
parent 0 a41df078684a
child 257 3e88ff8f41d5
--- a/kerneltest/e32test/pccd/t_setkey.cpp	Fri Apr 23 22:02:01 2010 +0100
+++ b/kerneltest/e32test/pccd/t_setkey.cpp	Fri Apr 23 22:08:41 2010 +0100
@@ -66,8 +66,12 @@
 GLDEF_C TInt E32Main()									// main function called by E32
     {
 	CTrapCleanup* cleanup=CTrapCleanup::New();			// get clean-up stack
+#if defined(_DEBUG) 
 	TRAPD(error,SetupConsoleL());						// more initialization, then do example
 	__ASSERT_DEBUG(!error,User::Panic(_L("BossTextUi"),error));
+#else
+	TRAP_IGNORE(SetupConsoleL());
+#endif
 	delete cleanup;										// destroy clean-up stack
 	return 0;											// and return
     }