return "";
}
+static bool custom_memcpy;
+void *__real_memcpy(void *dest, const void *src, size_t n);
void *__wrap_memcpy(void *dest, const void *src, size_t n)
{
+ if (!custom_memcpy)
+ return __real_memcpy(dest, src, n);
+
assert(src == (void *) 0xBA5EBALL);
assert(n == sizeof(struct logger_entry));
}
assert(rename_calls == 3);
assert(open_calls == 2);
+ custom_memcpy = true;
lf.prev_sec = 4444;
lf.prev_nsec = 6666;
should_print_line = false;
fail_snprintf = false;
assert(!logfile_write_with_rotation((struct logger_entry *) 0xBA5EBALL, &lf, SORT_SENT_MONO));
+ custom_memcpy = false;
logfile_free(&lf);