perf test: Use TEST_FAIL in the TEST_ASSERT macros instead of -1
authorArnaldo Carvalho de Melo <acme@kernel.org>
Thu, 22 Feb 2024 20:07:20 +0000 (17:07 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 26 Feb 2024 16:31:24 +0000 (08:31 -0800)
commit8680999dbe5735a68feae396dcfc486e18679f2e
tree1b7297e2bb988dcad31126b94c3f8ee2068e5797
parentbae4d1f86e4d6750d2fc11e040c7d49b180c4b8d
perf test: Use TEST_FAIL in the TEST_ASSERT macros instead of -1

Just to make things clearer, return TEST_FAIL (-1) instead of an open
coded -1.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/ZdepeMsjagbf1ufD@x1
tools/perf/tests/tests.h