q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=17f4c45fc929d26bcbf4e3e8b10d2066d9a1341f
commit 17f4c45fc929d26bcbf4e3e8b10d2066d9a1341f Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Mon Sep 28 18:50:07 2015 +0100 eolian tests: strip trailing newlines for ref file compare --- src/tests/eolian/eolian_generation.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tests/eolian/eolian_generation.c b/src/tests/eolian/eolian_generation.c index 1e745e9..0976146 100644 --- a/src/tests/eolian/eolian_generation.c +++ b/src/tests/eolian/eolian_generation.c @@ -42,6 +42,8 @@ _files_compare (const char *ref_filename, const char *tmp_filename) if (fread(tmp_content, tmp_filesize, 1, tmp_file) != 1) goto end; tmp_content[tmp_filesize] = '\0'; + while (tmp_content[tmp_filesize - 1] == '\n') + tmp_content[--tmp_filesize] = '\0'; fseek(ref_file, 0, SEEK_END); long ref_filesize = ftell(ref_file); @@ -51,6 +53,8 @@ _files_compare (const char *ref_filename, const char *tmp_filename) if (fread(ref_content, ref_filesize, 1, ref_file) != 1) goto end; ref_content[ref_filesize] = '\0'; + while (ref_content[ref_filesize - 1] == '\n') + ref_content[--ref_filesize] = '\0'; if (tmp_filesize != ref_filesize) goto end; --