genericopenlibs/openenvcore/libc/test/testsemaphore/src/tsemaphoreblocks.cpp
changeset 48 ab61c4cedc64
parent 0 e4d67989cc36
child 57 2efc27d87e1c
--- a/genericopenlibs/openenvcore/libc/test/testsemaphore/src/tsemaphoreblocks.cpp	Tue Jul 20 16:35:53 2010 +0530
+++ b/genericopenlibs/openenvcore/libc/test/testsemaphore/src/tsemaphoreblocks.cpp	Thu Aug 05 18:45:56 2010 +0530
@@ -1293,17 +1293,14 @@
     int semid;
     union semun arg;
 	INFO_PRINTF1(_L("IntgTest14"));
-	char *path;
-	
-	#if defined (__EPOC32__)
-		path = "z:\\tstdapis\\tsemaphore.ini";
-	#else
-		path = "c:\\tstdapis\\tsemaphore.ini";
-	#endif
-	
-    if ((key = ftok(path, 'P')) == -1) 
+	char *path = NULL;
+	path = "c:\\tstdapis\\tsemaphore.ini";
+
+	if ((key = ftok(path, 'P')) == -1) 
     	{
         ERR_PRINTF1(_L("ftok error!"));
+        _LIT(KFunc, "ftok failed with errno %d\n");
+      	INFO_PRINTF2(KFunc, errno);
         return KErrGeneral;
     	}