+ rval = pclFileReadData(fd_RW, rBuffer, 20);
+ x_fail_unless(rval == 20, "Failed read 20 bytes");
+ memset(rBuffer, 0, 1024);
+
+ rval = pclFileWriteData(fd_RW, wBuffer, strlen(wBuffer));
+ x_fail_unless(rval == strlen(wBuffer), "Failed write data");
+
+ // verify the backup creation:
+ handle = open(path, O_RDWR);
+ x_fail_unless(handle != -1, "Could not open file ==> failed to access backup file");
+
+ rval = read(handle, rBuffer, 1024);
+ //printf(" * * * Backup: \nIst : %s \nSoll: %s\n", rBuffer, gWriteBackupTestData);
+ x_fail_unless(strncmp((char*)rBuffer, gWriteBackupTestData, strlen(gWriteBackupTestData)) == 0, "Backup not correctly read");
+
+
+ (void)close(handle);
+ (void)pclFileClose(fd_RW);