@@ -180,23 +180,6 @@ FOSSIL_TEST_CASE(cpp_test_stream_get_permissions) {
180180 ASSUME_ITS_EQUAL_I32 (0 , fossil_fstream_get_permissions (filename, &mode));
181181}
182182
183- FOSSIL_TEST_CASE (cpp_test_stream_move_file) {
184- const char *source_filename = " testfile_move_source.txt" ;
185- const char *destination_filename = " testfile_move_destination.txt" ;
186- const char *content = " This is a test." ;
187-
188- // Create the source file
189- ASSUME_ITS_EQUAL_I32 (0 , fossil_fstream_open (&cpp_stream, source_filename, " w" ));
190- fossil_fstream_write (&cpp_stream, content, strlen (content), 1 );
191- fossil_fstream_close (&cpp_stream);
192-
193- // Move the file
194- ASSUME_ITS_EQUAL_I32 (0 , fossil_fstream_move (source_filename, destination_filename));
195-
196- // Check if the destination file exists
197- ASSUME_ITS_EQUAL_I32 (1 , fossil_fstream_file_exists (destination_filename));
198- }
199-
200183FOSSIL_TEST_CASE (cpp_test_stream_remove_file) {
201184 const char *filename = " testfile_remove.txt" ;
202185 const char *content = " This is a test." ;
@@ -400,7 +383,6 @@ FOSSIL_TEST_GROUP(cpp_file_tests) {
400383 FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_is_executable);
401384 FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_set_permissions);
402385 FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_get_permissions);
403- FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_move_file);
404386 FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_remove_file);
405387 FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_flush_file);
406388 FOSSIL_TEST_ADD (cpp_stream_suite, cpp_test_stream_setpos_and_getpos);
0 commit comments