Eina file test: use the correct Eina file object
authorVincent Torri <vincent.torri@gmail.com>
Tue, 26 May 2020 21:48:56 +0000 (21:48 +0000)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 31 May 2020 21:30:42 +0000 (06:30 +0900)
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D11885

src/tests/eina/eina_test_file.c

index a76d17c..8ef3d1a 100644 (file)
@@ -376,7 +376,7 @@ EFL_START_TEST(eina_file_map_new_test)
    fail_if(eina_file_refresh(e_file));
 
    e_file2 = eina_file_open(test_file2_path, EINA_FALSE);
-   fail_if(!e_file);
+   fail_if(!e_file2);
    file2_length = eina_file_size_get(e_file2);
    correct_file_open_check = file2_length - (big_buffer_size - file_min_offset);
    // check size of big_buffer == size of file