genericopenlibs/openenvcore/libc/test/testsemaphore/src/tsemaphoreblocks.cpp
changeset 52 bf6a71c50e42
parent 0 e4d67989cc36
child 57 2efc27d87e1c
--- a/genericopenlibs/openenvcore/libc/test/testsemaphore/src/tsemaphoreblocks.cpp	Fri Jun 11 15:26:22 2010 +0300
+++ b/genericopenlibs/openenvcore/libc/test/testsemaphore/src/tsemaphoreblocks.cpp	Wed Aug 18 11:27:44 2010 +0300
@@ -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;
     	}