Searched refs:buf2 (Results 1 - 3 of 3) sorted by relevance

/systemd/src/test/
H A Dtest-copy.c144 char buf[1024], buf2[1024]; local
160 r2 = read(infd, buf2, sizeof(buf2));
163 assert_se(strneq(buf, buf2, r));
H A Dtest-fileio.c365 _cleanup_free_ char *buf = NULL, *buf2 = NULL; local
369 assert_se((buf2 = strjoin(buf, "\n", NULL)));
373 r = write_string_file("/proc/cmdline", buf2, 0);
377 assert_se(write_string_file("/proc/cmdline", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE) == 0);
381 assert_se(write_string_file("/proc/cmdline", buf2, WRITE_STRING_FILE_VERIFY_ON_FAILURE|WRITE_STRING_FILE_AVOID_NEWLINE) == 0);
/systemd/src/journal/
H A Dtest-compress-benchmark.c93 _cleanup_free_ void *buf2 = NULL; local
128 r = decompress(buf, j, &buf2, &buf2_allocated, &k, 0);
133 assert_se(memcmp(text, buf2, size) == 0);

Completed in 1441 milliseconds