/FileX-v6.2.1/test/regression_test/ |
D | filex_directory_default_path_get_set_test.c | 41 void test_control_return(UINT status); 89 UINT status; in ftest_0_entry() local 104 status = fx_media_format(&ram_disk, in ftest_0_entry() 120 if (status) in ftest_0_entry() 128 status = fx_directory_default_set(&ram_disk, "/A0"); in ftest_0_entry() 129 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 136 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry() 137 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 144 …status = fx_directory_default_get_copy(&ram_disk, test_path_name_buffer, sizeof(test_path_name_bu… in ftest_0_entry() 147 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() [all …]
|
D | filex_file_naming_test.c | 38 void test_control_return(UINT status); 86 UINT status; in ftest_0_entry() local 96 status = fx_media_format(&ram_disk, in ftest_0_entry() 112 if (status) in ftest_0_entry() 120 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 123 if (status != FX_SUCCESS) in ftest_0_entry() 132 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry() 135 if ((status != FX_SUCCESS) || (path_ptr[0])) in ftest_0_entry() 144 status = fx_directory_create(&ram_disk, "A0"); in ftest_0_entry() 145 status += fx_directory_create(&ram_disk, ".b0"); in ftest_0_entry() [all …]
|
D | filex_media_check_test.c | 46 void test_control_return(UINT status); 96 UINT status; in ftest_0_entry() local 108 status = fx_media_format(&ram_disk, in ftest_0_entry() 122 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 125 status = fx_media_check(&ram_disk, scratch_memory, SCRATCH_MEMORY_SIZE, 0, &errors_detected); in ftest_0_entry() 126 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 129 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 130 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 136 status = fx_media_check(FX_NULL, scratch_memory, SCRATCH_MEMORY_SIZE, 0, &errors_detected); in ftest_0_entry() 137 return_if_fail( status == FX_PTR_ERROR); in ftest_0_entry() [all …]
|
D | filex_directory_create_delete_test.c | 116 void test_control_return(UINT status); 167 UINT status; in ftest_0_entry() local 184 status = fx_media_format(&ram_disk, in ftest_0_entry() 207 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 210 status = fx_directory_create(&ram_disk, "/A0"); in ftest_0_entry() 211 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 214 status = fx_directory_delete(&ram_disk, "/A0"); in ftest_0_entry() 215 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 218 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 219 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() [all …]
|
D | filex_directory_naming_test.c | 42 void test_control_return(UINT status); 90 UINT status; in ftest_0_entry() local 101 status = fx_media_format(&ram_disk, in ftest_0_entry() 117 if (status) in ftest_0_entry() 125 status = fx_directory_rename(&ram_disk, "/A0", "/A1"); in ftest_0_entry() 126 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 133 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 136 if (status != FX_SUCCESS) in ftest_0_entry() 145 status = fx_directory_default_get(&ram_disk, &path_ptr); in ftest_0_entry() 148 if ((status != FX_SUCCESS) || (path_ptr[0])) in ftest_0_entry() [all …]
|
D | filex_file_create_delete_test.c | 58 void test_control_return(UINT status); 107 UINT status; in ftest_0_entry() local 121 status = fx_media_format(&ram_disk, in ftest_0_entry() 135 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 138 status = fx_media_cache_invalidate(&ram_disk); in ftest_0_entry() 139 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 142 status = fx_media_extended_space_available(&ram_disk, &temp); in ftest_0_entry() 143 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 146 status = fx_file_extended_allocate(&file_1, 0); in ftest_0_entry() 147 return_if_fail( status == FX_NOT_OPEN); in ftest_0_entry() [all …]
|
D | filex_file_allocate_truncate_test.c | 40 void test_control_return(UINT status); 88 UINT status; in ftest_0_entry() local 102 status = fx_media_format(&ram_disk, in ftest_0_entry() 118 if (status) in ftest_0_entry() 126 status = fx_file_extended_truncate(&my_file, 0); in ftest_0_entry() 127 if (status != FX_NOT_OPEN) in ftest_0_entry() 134 status = fx_file_extended_truncate_release(&my_file, 0); in ftest_0_entry() 135 if (status != FX_NOT_OPEN) in ftest_0_entry() 142 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 145 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_directory_first_next_find_test.c | 39 void test_control_return(UINT status); 87 UINT status; in ftest_0_entry() local 109 status = fx_media_format(&ram_disk, in ftest_0_entry() 125 if (status) in ftest_0_entry() 133 status = fx_directory_next_entry_find(&ram_disk, "/A0"); in ftest_0_entry() 134 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 141 status = fx_directory_next_full_entry_find(&ram_disk, name, &attributes, in ftest_0_entry() 143 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 150 status = fx_directory_first_entry_find(&ram_disk, "/A0"); in ftest_0_entry() 151 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() [all …]
|
D | filex_media_volume_get_set_test.c | 40 void test_control_return(UINT status); 88 UINT status; in ftest_0_entry() local 97 status = fx_media_format(&ram_disk, in ftest_0_entry() 113 if (status) in ftest_0_entry() 121 status = fx_media_volume_set(&ram_disk, "NEW"); in ftest_0_entry() 122 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 129 status = fx_media_volume_get(&ram_disk, volume_buffer, FX_BOOT_SECTOR); in ftest_0_entry() 130 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 137 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 140 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_directory_local_path_test.c | 289 void test_control_return(UINT status); 332 UINT status; in ftest_0_entry() local 343 status = fx_media_format(&ram_disk, in ftest_0_entry() 359 if (status) in ftest_0_entry() 367 status = fx_directory_local_path_clear(&ram_disk); in ftest_0_entry() 368 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 375 status = fx_directory_local_path_restore(&ram_disk, &local_path); in ftest_0_entry() 376 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 383 status = fx_directory_local_path_set(&ram_disk, &local_path, "/A0"); in ftest_0_entry() 384 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_enable_3_test.c | 13 extern void test_control_return(UINT status); 49 extern void test_control_return(UINT status); 98 UINT status, length, new_length, old_length; in ftest_0_entry() local 121 status = fx_media_format(&ram_disk, in ftest_0_entry() 135 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffe… in ftest_0_entry() 136 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 139 status = fx_fault_tolerant_enable( &ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry() 140 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 144 status = fx_unicode_file_create( &ram_disk, unicode_name_2, length, destination_name); in ftest_0_entry() 145 status += fx_file_open( &ram_disk, &my_file, destination_name, FX_OPEN_FOR_WRITE); in ftest_0_entry() [all …]
|
D | filex_media_multiple_open_close_test.c | 56 void test_control_return(UINT status); 128 UINT status, status1; in ftest_0_entry() local 145 status = fx_media_format(&ram_disk, in ftest_0_entry() 161 status += fx_media_format(&ram_disk, in ftest_0_entry() 178 if (status) in ftest_0_entry() 186 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 187 …status += fx_media_open(&ram_disk1,"RAM DISK", _fx_ram_driver, ram_disk_memory1,cache_buffer1,CACH… in ftest_0_entry() 190 if (status != FX_SUCCESS) in ftest_0_entry() 199 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry() 203 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_file_rename_test.c | 48 void test_control_return(UINT status); 98 UINT status; in ftest_0_entry() local 110 status = fx_media_format(&ram_disk, in ftest_0_entry() 131 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 134 status = fx_file_rename(&ram_disk, "MYTEST", ""); in ftest_0_entry() 135 return_if_fail( status == FX_INVALID_NAME); in ftest_0_entry() 138 status = fx_file_rename(&ram_disk, "MYTEST", "OURTEST"); in ftest_0_entry() 139 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 142 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 143 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() [all …]
|
D | filex_file_date_time_set_test.c | 45 void test_control_return(UINT status); 93 UINT status; in ftest_0_entry() local 108 status = fx_media_format(&ram_disk, in ftest_0_entry() 124 if (status) in ftest_0_entry() 132 status = fx_directory_information_get(&ram_disk, "DOES_NOT_EXIST", &attributes, &size, in ftest_0_entry() 134 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 141 status = fx_file_date_time_set(&ram_disk, "TEST.TXT", 2000, 1, 1, 1, 1, 1); in ftest_0_entry() 142 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 149 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 152 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_file_seek_test.c | 39 void test_control_return(UINT status); 87 UINT status; in ftest_0_entry() local 100 status = fx_media_format(&ram_disk, in ftest_0_entry() 116 if (status) in ftest_0_entry() 124 status = fx_file_extended_seek(&my_file, 0); in ftest_0_entry() 125 if (status != FX_NOT_OPEN) in ftest_0_entry() 132 status = fx_file_extended_relative_seek(&my_file, 0, 0); in ftest_0_entry() 133 if (status != FX_NOT_OPEN) in ftest_0_entry() 140 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 143 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_file_read_write_test.c | 48 void test_control_return(UINT status); 96 UINT status; in ftest_0_entry() local 113 status = fx_media_format(&ram_disk, in ftest_0_entry() 129 if (status) in ftest_0_entry() 137 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 140 if (status != FX_SUCCESS) in ftest_0_entry() 149 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry() 150 status += fx_file_create(&ram_disk, "READ_ONLY.TXT"); in ftest_0_entry() 153 if (status != FX_SUCCESS) in ftest_0_entry() 161 status = fx_file_write(&my_file, (void *) &write_value, sizeof(ULONG)); in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_enable_1_test.c | 27 extern void test_control_return(UINT status); 61 extern void test_control_return(UINT status); 107 UINT status; in ftest_0_entry() local 120 status = fx_media_format(&ram_disk, in ftest_0_entry() 134 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffe… in ftest_0_entry() 135 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 141 status = fx_fault_tolerant_enable( FX_NULL, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry() 142 return_if_fail( status == FX_PTR_ERROR); in ftest_0_entry() 145 status = fx_fault_tolerant_enable( &ram_disk, FX_NULL, FAULT_TOLERANT_SIZE); in ftest_0_entry() 146 return_if_fail( status == FX_PTR_ERROR); in ftest_0_entry() [all …]
|
D | filex_media_format_open_close_test.c | 39 void test_control_return(UINT status); 87 UINT status; in ftest_0_entry() local 105 status = fx_media_format(&ram_disk, in ftest_0_entry() 121 if (status != FX_SECTOR_INVALID) in ftest_0_entry() 129 status = fx_media_format(&ram_disk, in ftest_0_entry() 145 if (status != FX_SECTOR_INVALID) in ftest_0_entry() 153 status = fx_media_format(&ram_disk, in ftest_0_entry() 169 if (status != FX_SECTOR_INVALID) in ftest_0_entry() 177 status = fx_media_format(&ram_disk, in ftest_0_entry() 193 if (status != FX_SECTOR_INVALID) in ftest_0_entry() [all …]
|
D | filex_file_attributes_read_set_test.c | 48 void test_control_return(UINT status); 96 UINT status; in ftest_0_entry() local 106 status = fx_media_format(&ram_disk, in ftest_0_entry() 122 if (status) in ftest_0_entry() 130 status = fx_file_attributes_read(&ram_disk, "TEST.TXT", &attributes); in ftest_0_entry() 131 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 138 status = fx_file_attributes_set(&ram_disk, "TEST.TXT", 0); in ftest_0_entry() 139 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 146 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 149 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_directory_rename_test.c | 49 void test_control_return(UINT status); 99 UINT status; in ftest_0_entry() local 108 status = fx_media_format(&ram_disk, in ftest_0_entry() 131 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() 134 status = fx_directory_name_test(&ram_disk, "/A0"); in ftest_0_entry() 135 return_if_fail( status == FX_MEDIA_NOT_OPEN); in ftest_0_entry() 138 status = fx_directory_rename(&ram_disk, "/A0", ""); in ftest_0_entry() 139 return_if_fail( status == FX_INVALID_NAME); in ftest_0_entry() 142 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 143 return_if_fail( status == FX_SUCCESS); in ftest_0_entry() [all …]
|
D | filextestcontrol.c | 384 void test_control_return(UINT status); 470 UINT status; in tx_application_define() local 495 … status = _fxe_fault_tolerant_enable(&media_instance, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in tx_application_define() 498 if (status != FX_CALLER_ERROR) in tx_application_define() 512 … status = _fxe_fault_tolerant_enable(&media_instance, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in tx_application_define() 515 if (status != FX_CALLER_ERROR) in tx_application_define() 531 … status = _fxe_fault_tolerant_enable(&media_instance, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in tx_application_define() 537 if (status != FX_CALLER_ERROR) in tx_application_define() 565 status = _fxe_media_abort(&media_instance); in tx_application_define() 568 if (status != FX_CALLER_ERROR) in tx_application_define() [all …]
|
D | filex_media_abort_test.c | 10 void test_control_return(UINT status); 99 UINT status; in ftest_0_entry() local 109 status = fx_media_format(&ram_disk, in ftest_0_entry() 125 if (status) in ftest_0_entry() 133 status = fx_media_abort(&ram_disk); in ftest_0_entry() 134 if (status != FX_MEDIA_NOT_OPEN) in ftest_0_entry() 141 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 144 if (status != FX_SUCCESS) in ftest_0_entry() 153 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry() 156 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_long_directory_rename_io_error_test.c | 22 extern void test_control_return(UINT status); 133 extern void test_control_return(UINT status); 184 UINT status; in ftest_0_entry() local 198 status = fx_media_format(&ram_disk, in ftest_0_entry() 216 status = fx_media_format(&ram_disk, in ftest_0_entry() 234 status = fx_media_format(&ram_disk, in ftest_0_entry() 252 status = fx_media_format(&ram_disk, in ftest_0_entry() 269 if (status) in ftest_0_entry() 277 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry() 280 if (status != FX_SUCCESS) in ftest_0_entry() [all …]
|
D | filex_file_write_seek_test.c | 50 void test_control_return(UINT status); 98 UINT status; in ftest_0_entry() local 107 status = fx_media_format(&ram_disk, in ftest_0_entry() 121 …status += fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory, cache_buffer, CACH… in ftest_0_entry() 122 return_if_fail(FX_SUCCESS == status); in ftest_0_entry() 127 status = fx_fault_tolerant_enable(&ram_disk, fault_tolerant_buffer, FAULT_TOLERANT_SIZE); in ftest_0_entry() 128 return_if_fail(FX_SUCCESS == status); in ftest_0_entry() 132 status += fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry() 133 status += fx_file_open(&ram_disk, &my_file, "TEST.TXT", FX_OPEN_FOR_WRITE); in ftest_0_entry() 134 return_if_fail(FX_SUCCESS == status); in ftest_0_entry() [all …]
|
D | filex_fault_tolerant_file_truncate_release_available_test.c | 28 extern void test_control_return(UINT status); 69 extern void test_control_return(UINT status); 118 UINT status; in ftest_0_entry() local 133 status = fx_media_format(&ram_disk, in ftest_0_entry() 151 status = fx_media_format(&ram_disk, in ftest_0_entry() 169 status = fx_media_format(&ram_disk, in ftest_0_entry() 186 return_if_fail(status == FX_SUCCESS); in ftest_0_entry() 189 …status = fx_media_open(&ram_disk, "RAM DISK", _fx_ram_driver, ram_disk_memory_large, cache_buffer… in ftest_0_entry() 190 return_if_fail(status == FX_SUCCESS); in ftest_0_entry() 193 status = fx_file_create(&ram_disk, "TEST.TXT"); in ftest_0_entry() [all …]
|