Tests: Catch an earlier QCOMPARE failure in compare()
Tests: Catch an earlier QCOMPARE failure in compare()

QCOMPARE macro has a return in case of failure. If a test fails inside
the encodeOne function, we log that error, but were proceeding to
perform more tests (which could fail again and produce more errors).

Signed-off-by: Thiago Macieira <0ed1648d92ca0373297a182b1dba1b974ad10d88@intel.com>

intel/tinycbor,intel/tinycbor,thiagomacieira/tinycbor,thiagomacieira/tinycbor,intel/tinycbor,thiagomacieira/tinycbor,intel/tinycbor,thiagomacieira/tinycbor