tests/common/48: Don't read newline

To avoid platform-specific differences in git settings.
0.42
Nirbheek Chauhan 7 years ago
parent f85d4bb14c
commit 15c1f43964
  1. 4
      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;
}

Loading…
Cancel
Save