Home
last modified time | relevance | path

Searched refs:write_buffer (Results 1 – 22 of 22) sorted by relevance

/FileX-v6.2.1/test/regression_test/
Dfilex_fault_tolerant_file_seek_test.c47 static CHAR write_buffer[2][TOTAL_SIZE]; variable
115 for (j = 0; j < sizeof(write_buffer[0]); j++) in ftest_0_entry()
117 write_buffer[0][j] = (CHAR)(rand() & 0xFF); in ftest_0_entry()
118 write_buffer[1][j] = (CHAR)(~write_buffer[0][j] & 0xFF); in ftest_0_entry()
196 status = fx_file_write(&my_file, write_buffer[0], TOTAL_SIZE); in ftest_0_entry()
204 status = fx_file_write(&my_file, write_buffer[1], OVERWRITE_SIZE); in ftest_0_entry()
216 return_if_fail(memcmp(&read_buffer[0], write_buffer[1], OVERWRITE_SIZE) == 0); in ftest_0_entry()
220 &write_buffer[0][OVERWRITE_SIZE], in ftest_0_entry()
Dfilex_fault_tolerant_file_random_seek_test.c48 static CHAR write_buffer[TOTAL_SIZE]; variable
119 for (j = 0; j < sizeof(write_buffer); j++) in ftest_0_entry()
121 write_buffer[j] = (CHAR)(rand() & 0xFF); in ftest_0_entry()
218 status = fx_file_write(&my_file, &write_buffer[0], TOTAL_SIZE); in ftest_0_entry()
239 memcpy(&write_buffer[seek_position], &overwrite_buffer[overwrite_position], in ftest_0_entry()
253 return_if_fail(memcmp(&read_buffer[0], &write_buffer[0], sizeof(write_buffer)) == 0); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_release_available_test.c60 static CHAR write_buffer[FILE_SIZE]; variable
201 status = fx_file_write(&my_file, write_buffer, sizeof(write_buffer)); in ftest_0_entry()
233 status = fx_file_write(&my_file, write_buffer, sizeof(write_buffer)); in ftest_0_entry()
326 status += fx_file_write(&my_file, write_buffer, sizeof(write_buffer)); in ftest_0_entry()
330 status += fx_file_write(&my_file, write_buffer, sizeof(write_buffer)); in ftest_0_entry()
Dfilex_fault_tolerant_file_write_directory_interrupt_test.c82 static CHAR write_buffer[2048]; variable
347 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
350 data_buffer[write_index] = (UCHAR)write_buffer[write_index]; in ftest_0_entry()
355 status = fx_file_write(&my_file, (void *) write_buffer, data_size); in ftest_0_entry()
742 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
745 data_buffer[index + write_index] = (UCHAR)write_buffer[write_index]; in ftest_1_entry()
750 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_loop_write_data_test.c57 static CHAR write_buffer[2048]; variable
133 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
262 status = fx_file_write(&my_file, (void *) write_buffer, file_size); in ftest_0_entry()
308 status = fx_file_write(&my_file, (void *) write_buffer, write_size); in ftest_0_entry()
Dfilex_fault_tolerant_log_full_test.c44 static CHAR write_buffer[2048]; variable
216 status = fx_file_write(&my_file, write_buffer, sizeof(write_buffer)); in ftest_0_entry()
Dfilex_fault_tolerant_file_corruption_test.c51 static UCHAR write_buffer[1024 * 1024]; variable
192 memcpy(&write_buffer[itr * 32], local_buffer2, 32); in ftest_0_entry()
198 if (memcmp(read_buffer, write_buffer, FILE_SIZE[i])) in ftest_0_entry()
245 memcpy(&write_buffer[itr * 32], local_buffer2, 32); in ftest_0_entry()
249 status = fx_file_write(&my_file[i], write_buffer, FILE_SIZE[i]); in ftest_0_entry()
Dfilex_fault_tolerant_file_write_fat_interrupt_test.c86 static CHAR write_buffer[2048]; variable
348 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
351 data_buffer[write_index] = (UCHAR)write_buffer[write_index]; in ftest_0_entry()
356 status = fx_file_write(&my_file, (void *) write_buffer, data_size); in ftest_0_entry()
738 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
742 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_file_write_redo_log_interrupt_test.c84 static CHAR write_buffer[2048]; variable
348 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
351 data_buffer[write_index] = (UCHAR)write_buffer[write_index]; in ftest_0_entry()
356 status = fx_file_write(&my_file, (void *) write_buffer, data_size); in ftest_0_entry()
727 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
731 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_file_write_data_interrupt_test.c84 static CHAR write_buffer[2048]; variable
256 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
259 data_buffer[write_index] = (UCHAR)write_buffer[write_index]; in ftest_0_entry()
264 status = fx_file_write(&my_file, (void *) write_buffer, data_size); in ftest_0_entry()
441 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
445 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_file_write_undo_log_interrupt_test.c85 static CHAR write_buffer[2048]; variable
348 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
351 data_buffer[write_index] = (UCHAR)write_buffer[write_index]; in ftest_0_entry()
356 status = fx_file_write(&my_file, (void *) write_buffer, data_size); in ftest_0_entry()
727 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
731 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_recover_fail_test.c49 static CHAR write_buffer[2048]; variable
178 status = fx_file_write(&my_file, (void *) write_buffer, data_size); in ftest_0_entry()
291 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
295 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_file_write_available_test.c56 static CHAR write_buffer[2048]; variable
454 …tatus != FX_SUCCESS) || (actual != write_buffer_size) || memcmp(read_buffer, write_buffer, actual)) in ftest_0_entry()
535 write_buffer[write_index] = (CHAR)rand(); in ftest_1_entry()
539 fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_1_entry()
Dfilex_fault_tolerant_log_recover_directory_test.c76 static CHAR write_buffer[4096]; variable
161 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
344 status = fx_file_write(&my_file, (void *) write_buffer, 1000); in ftest_0_entry()
603 …if ((status != FX_SUCCESS) || (actual != 2048 + 1000) || memcmp(read_buffer, write_buffer, actual)… in ftest_0_entry()
727 fx_file_write(&my_file, (void *) (write_buffer + 1000), 2048); in ftest_1_entry()
Dfilex_fault_tolerant_log_recover_fat_test.c79 static CHAR write_buffer[2048]; variable
163 write_buffer[write_index] = (CHAR)rand(); in ftest_0_entry()
268 status = fx_file_write(&my_file, (void *) write_buffer, 1000); in ftest_0_entry()
397 …f_fail((status == FX_SUCCESS) && (actual == 1000) && !(memcmp(read_buffer, write_buffer, actual))); in ftest_0_entry()
477 fx_file_write(&my_file, (void *) (write_buffer + 1000), 2048); in ftest_1_entry()
Dfilex_fault_tolerant_enable_4_test.c48 static CHAR write_buffer[2048]; variable
213 fx_file_write(&my_file, (void *) write_buffer, 2048); in ftest_1_entry()
Dfilex_fault_tolerant_file_truncate_redo_log_interrupt_test.c67 static CHAR write_buffer[2048]; variable
238 status += fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_release_redo_log_interrupt_test.c67 static CHAR write_buffer[2048]; variable
326 status = fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_release_directory_interrupt_test.c67 static CHAR write_buffer[2048]; variable
323 status = fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_directory_interrupt_test.c67 static CHAR write_buffer[2048]; variable
323 status = fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_release_fat_interrupt_test.c67 static CHAR write_buffer[4096]; variable
323 status = fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_0_entry()
Dfilex_fault_tolerant_file_truncate_release_undo_log_interrupt_test.c67 static CHAR write_buffer[2048]; variable
329 status = fx_file_write(&my_file, (void *) write_buffer, write_buffer_size); in ftest_0_entry()