summaryrefslogtreecommitdiff
path: root/utils/Utils.cpp
diff options
context:
space:
mode:
authorJenkins <bsgcomp@arm.com>2018-05-23 11:36:53 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-05-23 14:55:11 +0100
commitb3a371bc429d2ba45e56baaf239d8200c2662a74 (patch)
tree554525e415c303d64a08722a755397852ebbb8e4 /utils/Utils.cpp
parent67c8c91522e5be8156b77f57e63c0253535c902a (diff)
downloadarmcl-b3a371bc429d2ba45e56baaf239d8200c2662a74.tar.gz
armcl-b3a371bc429d2ba45e56baaf239d8200c2662a74.tar.bz2
armcl-b3a371bc429d2ba45e56baaf239d8200c2662a74.zip
arm_compute v18.05HEADmaster
Diffstat (limited to 'utils/Utils.cpp')
-rw-r--r--utils/Utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/Utils.cpp b/utils/Utils.cpp
index 8a2d11814..a5c6a95a2 100644
--- a/utils/Utils.cpp
+++ b/utils/Utils.cpp
@@ -67,16 +67,16 @@ void discard_comments_and_spaces(std::ifstream &fs)
} // namespace
#ifndef BENCHMARK_EXAMPLES
-int run_example(int argc, char **argv, Example &example)
+int run_example(int argc, char **argv, std::unique_ptr<Example> example)
{
std::cout << "\n"
<< argv[0] << "\n\n";
try
{
- example.do_setup(argc, argv);
- example.do_run();
- example.do_teardown();
+ example->do_setup(argc, argv);
+ example->do_run();
+ example->do_teardown();
std::cout << "\nTest passed\n";
return 0;