fix: Somehow, test file changed line endings to CRLF. Changed it back to LF.

GreekStapler 2023-01-25 23:55:04 +01:00
parent 10eb08b8e4
commit 9452fea2ab
1 changed files with 84 additions and 86 deletions

View File

@ -35,7 +35,6 @@ void test_pkg_info_parse() {
TEST_CHECK(!strcmp(pkg_info->optdepends->array[0], "test7"));
TEST_CHECK(!strcmp(pkg_info->makedepends->array[0], "xorg-xcursorgen"));
TEST_CHECK(!strcmp(pkg_info->checkdepends->array[0], "test8"));
}
void test_pkg_read_archive_files() {
@ -44,7 +43,7 @@ void test_pkg_read_archive_files() {
FILE *f = fopen("./test/package/files", "r");
TEST_ASSERT_(f != NULL, "could not find test files file in ./test/package");
char *buff = malloc(sizeof(char) * 128);
char buff[128];
size_t i = 0;
while ((fgets(buff, 128, f)) != NULL || i < pkg->files->size) {
@ -75,7 +74,6 @@ void test_pkg_read_archive_desc() {
fclose(f);
TEST_CHECK(!strcmp(description, desc));
}
TEST_LIST = {