forked from enlightenment/efl
elm_code: Fix usage of basename
This commit is contained in:
parent
541d6527fa
commit
0a068ac549
|
@ -75,7 +75,7 @@ EAPI const char *elm_code_file_filename_get(Elm_Code_File *file)
|
|||
if (!file->file)
|
||||
return NULL;
|
||||
|
||||
return basename((char *)eina_file_filename_get(file->file));
|
||||
return ecore_file_file_get(eina_file_filename_get(file->file));
|
||||
}
|
||||
|
||||
EAPI const char *elm_code_file_path_get(Elm_Code_File *file)
|
||||
|
|
|
@ -19,7 +19,7 @@ START_TEST (elm_code_file_load)
|
|||
file = elm_code_file_open(code, path);
|
||||
realpath(path, real);
|
||||
|
||||
ck_assert_str_eq(basename(path), elm_code_file_filename_get(file));
|
||||
ck_assert_str_eq(ecore_file_file_get(path), elm_code_file_filename_get(file));
|
||||
ck_assert_str_eq(real, elm_code_file_path_get(file));
|
||||
elm_code_file_close(file);
|
||||
elm_code_free(code);
|
||||
|
|
Loading…
Reference in New Issue