From 15c1f4396421d9404074e7f2caadb065ea39fa28 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 11 Sep 2017 15:06:51 +0530 Subject: [PATCH] tests/common/48: Don't read newline To avoid platform-specific differences in git settings. --- test cases/common/48 test args/tester.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test cases/common/48 test args/tester.c b/test cases/common/48 test args/tester.c index 28aa0dbfb..419277e5b 100644 --- a/test cases/common/48 test args/tester.c +++ b/test cases/common/48 test args/tester.c @@ -21,12 +21,12 @@ int main(int argc, char **argv) { return 1; } - size = read(fd, data, 10); + size = read(fd, data, 8); if (size < 0) { fprintf(stderr, "Failed to read: %s\n", strerror(errno)); return 1; } - if (strcmp(data, "contents\n") != 0) { + if (strncmp(data, "contents", 8) != 0) { fprintf(stderr, "Contents don't match, got %s\n", data); return 1; }