+ x_fail_unless(ret == -1, "Could close file, but should not!!");
+
+ // test multiple handles
+ handleArray[0] = pclFileOpen(0xFF, "media/mediaDB_write_01.db", 1, 1);
+ x_fail_unless(handle1 != -1, "Could not open file ==> /media/mediaDB_write_01.db");
+
+ handleArray[1] = pclFileOpen(0xFF, "media/mediaDB_write_02.db", 1, 1);
+ x_fail_unless(handle1 != -1, "Could not open file ==> /media/mediaDB_write_02.db");
+
+ handleArray[2] = pclFileOpen(0xFF, "media/mediaDB_write_03.db", 1, 1);
+ x_fail_unless(handle1 != -1, "Could not open file ==> /media/mediaDB_write_03.db");
+
+ handleArray[3] = pclFileOpen(0xFF, "media/mediaDB_write_04.db", 1, 1);
+ x_fail_unless(handle1 != -1, "Could not open file ==> /media/mediaDB_write_04.db");
+
+ size = pclFileReadData(handleArray[0], buffer, READ_SIZE);
+ x_fail_unless(strncmp((char*)buffer, "/user/1/seat/1/media/mediaDB_write_01.db",
+ strlen("/user/1/seat/1/media/mediaDB_write_01.db"))
+ == 0, "Buffer not correctly read => mediaDB_write_01.db");