COMPMID-1396: make validate_example and benchmark_example check if setup was successful

Change-Id: I70dbd9f9258174fc80928906c33abecf804284c3
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/139716
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
diff --git a/tests/validate_examples/ValidateExample.h b/tests/validate_examples/ValidateExample.h
index 4dd552a..2721508 100644
--- a/tests/validate_examples/ValidateExample.h
+++ b/tests/validate_examples/ValidateExample.h
@@ -48,7 +48,10 @@
      * @param[in] argc Argument count.
      * @param[in] argv Argument values.
      */
-    virtual void do_setup(int argc, char **argv) {};
+    virtual bool do_setup(int argc, char **argv)
+    {
+        return true;
+    };
     /** Run the example. */
     virtual void do_run() {};
     /** Run reference implementation and validate against the target output