Home
last modified time | relevance | path

Searched refs:orig_pos (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_file.c134 off_t orig_pos; in test_file_truncate() local
167 orig_pos = fs_tell(&filep); in test_file_truncate()
168 TC_PRINT("Original size of file = %ld\n", (long) orig_pos); in test_file_truncate()
172 res = fs_truncate(&filep, orig_pos - 5); in test_file_truncate()
182 if (fs_tell(&filep) != (orig_pos - 5)) { in test_file_truncate()
191 orig_pos = fs_tell(&filep); in test_file_truncate()
192 res = fs_truncate(&filep, orig_pos + 10); in test_file_truncate()
202 if (fs_tell(&filep) != (orig_pos + 10)) { in test_file_truncate()
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/
Dtest_fat_file.c135 off_t orig_pos; in test_file_truncate() local
179 orig_pos = fs_tell(&filep); in test_file_truncate()
180 TC_PRINT("Original size of file = %ld\n", (long) orig_pos); in test_file_truncate()
184 res = fs_truncate(&filep, orig_pos - 5); in test_file_truncate()
200 if (fs_tell(&filep) != (orig_pos - 5)) { in test_file_truncate()
215 orig_pos = fs_tell(&filep); in test_file_truncate()
216 res = fs_truncate(&filep, orig_pos + 10); in test_file_truncate()
232 if (fs_tell(&filep) != (orig_pos + 10)) { in test_file_truncate()
/Zephyr-latest/tests/subsys/fs/fs_api/src/
Dtest_fs_dir_file.c736 off_t orig_pos; in _test_file_truncate() local
813 orig_pos = fs_tell(&filep); in _test_file_truncate()
814 TC_PRINT("Original size of file = %d\n", (int)orig_pos); in _test_file_truncate()
818 ret = fs_truncate(&filep, orig_pos - 5); in _test_file_truncate()
828 if (fs_tell(&filep) != (orig_pos - 5)) { in _test_file_truncate()
837 orig_pos = fs_tell(&filep); in _test_file_truncate()
838 ret = fs_truncate(&filep, orig_pos + 10); in _test_file_truncate()
848 if (fs_tell(&filep) != (orig_pos + 10)) { in _test_file_truncate()