diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2018-01-10 14:08:50 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:43:10 +0000 |
commit | 2b5f0f2574551f59970bb9d710bafad2bc4bbd4a (patch) | |
tree | fd586f56b1285f0d6c52ecefc174eba0a9c8f157 /utils/Utils.cpp | |
parent | 571b18a1fca4a5ed4dd24a38cb619f4de43ba3ed (diff) | |
download | ComputeLibrary-2b5f0f2574551f59970bb9d710bafad2bc4bbd4a.tar.gz |
COMPMID-782 Port examples to the new format
Change-Id: Ib178a97c080ff650094d02ee49e2a0aa22376dd0
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/115717
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils/Utils.cpp')
-rw-r--r-- | utils/Utils.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/utils/Utils.cpp b/utils/Utils.cpp index c2f5449a28..32d5e3a6c0 100644 --- a/utils/Utils.cpp +++ b/utils/Utils.cpp @@ -66,41 +66,6 @@ void discard_comments_and_spaces(std::ifstream &fs) } } // namespace -//FIXME: Delete once tests have been ported (COMPMID-782) -int run_example(int argc, char **argv, example &func) -{ - std::cout << "\n" - << argv[0] << "\n\n"; - - try - { - func(argc, argv); - - std::cout << "\nTest passed\n"; - return 0; - } -#ifdef ARM_COMPUTE_CL - catch(cl::Error &err) - { - std::cerr << "!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl; - std::cerr << std::endl - << "ERROR " << err.what() << "(" << err.err() << ")" << std::endl; - std::cerr << "!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl; - } -#endif /* ARM_COMPUTE_CL */ - catch(std::runtime_error &err) - { - std::cerr << "!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl; - std::cerr << std::endl - << "ERROR " << err.what() << " " << (errno ? strerror(errno) : "") << std::endl; - std::cerr << "!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl; - } - - std::cout << "\nTest FAILED\n"; - - return -1; -} - #ifndef BENCHMARK_EXAMPLES int run_example(int argc, char **argv, Example &example) { |