From 4a056523cf7f721d674e4898e434184128d3d9f4 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 25 Nov 2019 15:33:24 +0100 Subject: libtests/dl*: Rename source files Rename source files to use a %.c -> %.o and %.cc -> %.o pattern. Use *.cc for C++ source files instead of *.cpp to be in line with other C++ source files. Update #3818. --- testsuites/libtests/dl05/dl-cpp.cc | 30 ++++++++++++++++++++++++++++++ testsuites/libtests/dl05/dl-cpp.cpp | 30 ------------------------------ testsuites/libtests/dl05/dl-o5.cpp | 33 --------------------------------- testsuites/libtests/dl05/dl05-o5.cc | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 63 deletions(-) create mode 100644 testsuites/libtests/dl05/dl-cpp.cc delete mode 100644 testsuites/libtests/dl05/dl-cpp.cpp delete mode 100644 testsuites/libtests/dl05/dl-o5.cpp create mode 100644 testsuites/libtests/dl05/dl05-o5.cc (limited to 'testsuites/libtests/dl05') diff --git a/testsuites/libtests/dl05/dl-cpp.cc b/testsuites/libtests/dl05/dl-cpp.cc new file mode 100644 index 0000000000..0e2005713e --- /dev/null +++ b/testsuites/libtests/dl05/dl-cpp.cc @@ -0,0 +1,30 @@ +/* + * The base image needs this to include the RTTI data. + */ +#include +#include +#include "dl-load.h" +void exception_base(bool throw_runtime) +{ + printf("%s: begin\n", __func__); + try + { + if (throw_runtime) + throw std::runtime_error("eb: throw std::runtime_error"); + else + throw dl_test_throw_me("eb: throw me"); + } + catch (std::exception const& e) + { + printf("%s: caught: %s\n", __func__, e.what()); + } + catch (dl_test_throw_me const& e) + { + printf("%s: caught: %s\n", __func__, e.what()); + } + catch (...) + { + printf("%s: caught: unknown\n", __func__); + } + printf("%s: end\n", __func__); +} diff --git a/testsuites/libtests/dl05/dl-cpp.cpp b/testsuites/libtests/dl05/dl-cpp.cpp deleted file mode 100644 index 0e2005713e..0000000000 --- a/testsuites/libtests/dl05/dl-cpp.cpp +++ /dev/null @@ -1,30 +0,0 @@ -/* - * The base image needs this to include the RTTI data. - */ -#include -#include -#include "dl-load.h" -void exception_base(bool throw_runtime) -{ - printf("%s: begin\n", __func__); - try - { - if (throw_runtime) - throw std::runtime_error("eb: throw std::runtime_error"); - else - throw dl_test_throw_me("eb: throw me"); - } - catch (std::exception const& e) - { - printf("%s: caught: %s\n", __func__, e.what()); - } - catch (dl_test_throw_me const& e) - { - printf("%s: caught: %s\n", __func__, e.what()); - } - catch (...) - { - printf("%s: caught: unknown\n", __func__); - } - printf("%s: end\n", __func__); -} diff --git a/testsuites/libtests/dl05/dl-o5.cpp b/testsuites/libtests/dl05/dl-o5.cpp deleted file mode 100644 index b70790ea7b..0000000000 --- a/testsuites/libtests/dl05/dl-o5.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "dl-load.h" /* make the symbol a C linkage */ - -#include - -#include - -#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__); - -void exception_dl(bool throw_runtime) -{ - printf("exception_dl: begin\n"); - try - { - printf("exception_dl: throwing...\n"); - if (throw_runtime) - throw std::runtime_error("throw std::runtime_error object"); - else - throw dl_test_throw_me("throw dl_test_throw_me object"); - } - catch (dl_test_throw_me const& e) - { - printf("%s: caught: %s\n", __func__, e.what()); - } - catch (std::exception const& e) - { - printf("%s: caught: %s\n", __func__, e.what()); - } - catch (...) - { - printf("%s: caught: unknown\n", __func__); - } - printf("exception_dl: end\n"); -} diff --git a/testsuites/libtests/dl05/dl05-o5.cc b/testsuites/libtests/dl05/dl05-o5.cc new file mode 100644 index 0000000000..b70790ea7b --- /dev/null +++ b/testsuites/libtests/dl05/dl05-o5.cc @@ -0,0 +1,33 @@ +#include "dl-load.h" /* make the symbol a C linkage */ + +#include + +#include + +#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__); + +void exception_dl(bool throw_runtime) +{ + printf("exception_dl: begin\n"); + try + { + printf("exception_dl: throwing...\n"); + if (throw_runtime) + throw std::runtime_error("throw std::runtime_error object"); + else + throw dl_test_throw_me("throw dl_test_throw_me object"); + } + catch (dl_test_throw_me const& e) + { + printf("%s: caught: %s\n", __func__, e.what()); + } + catch (std::exception const& e) + { + printf("%s: caught: %s\n", __func__, e.what()); + } + catch (...) + { + printf("%s: caught: unknown\n", __func__); + } + printf("exception_dl: end\n"); +} -- cgit v1.2.3