diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-09-11 15:06:51 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-09-11 23:33:11 +0530 |
commit | 4a9c31025c685edc70ea1eb906ef5bdeb8b7b973 (patch) | |
tree | 63533522520ff1bc6554c55b810c204d2af0bf71 | |
parent | aff981a6b0362eeb4b51f9c6cd424f4233953976 (diff) | |
download | meson-4a9c31025c685edc70ea1eb906ef5bdeb8b7b973.zip meson-4a9c31025c685edc70ea1eb906ef5bdeb8b7b973.tar.gz meson-4a9c31025c685edc70ea1eb906ef5bdeb8b7b973.tar.bz2 |
tests/common/48: Don't read newline
To avoid platform-specific differences in git settings.
-rw-r--r-- | test cases/common/48 test args/tester.c | 4 |
1 files 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 28aa0db..419277e 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; } |