diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-04-20 15:46:21 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:54 +0000 |
commit | 9fb0cac961f70d1937c5fa3eafeaee1385c89768 (patch) | |
tree | 9a8847053f65631e050c231645549adb48c92fb8 /utils/Utils.cpp | |
parent | fda901f0485371e8b6a807c8dd9614560a924793 (diff) | |
download | ComputeLibrary-9fb0cac961f70d1937c5fa3eafeaee1385c89768.tar.gz |
COMPMID-1081: Introduced test-wide instruments
Change-Id: I5831241f3fc503717cc51136453c2bf96d4b420b
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/128484
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'utils/Utils.cpp')
-rw-r--r-- | utils/Utils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/Utils.cpp b/utils/Utils.cpp index 8a2d11814e..a5c6a95a2a 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; |