fuzz-journal-remote: print some kinds of errors
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 31 May 2021 10:05:29 +0000 (12:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 31 May 2021 17:29:07 +0000 (19:29 +0200)
commit2dd7a72d5a58e9a99b1f79b0a2c966e5b3ee1b1d
tree6036ab6245255bb391a08dfbd0bbe74ebafb3992
parent23b8aa648d1d8cb1209ddd521989aa47f9344f68
fuzz-journal-remote: print some kinds of errors

In https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34803, we fail with:

  Assertion 'IN_SET(r, -ENOMEM, -EMFILE, -ENFILE)' failed at src/journal-remote/fuzz-journal-remote.c:69,
    function int LLVMFuzzerTestOneInput(const uint8_t *, size_t)(). Aborting.
  AddressSanitizer:DEADLYSIGNAL

Let's try to print the error, so maybe we can see what is going on.
With the previous commit we shouldn't print out anything.
src/journal-remote/fuzz-journal-remote.c