summaryrefslogtreecommitdiffstats
path: root/test/exception/sdbus_error.cpp
Commit message (Collapse)AuthorAgeFilesLines
* exception: Add .get_errno() methodAdriana Kobylak2018-09-211-0/+9
| | | | | | | | | | | | | | | | | Add the .get_errno() method to provide the errno value from SdBusError. Closes openbmc/sdbusplus#22 Tested: Added check for the new method to the exception unit test suite. Also verified external callers get the right errno value with: catch (const SdBusError& e) { int errno = e.get_errno()); } Change-Id: Idddfa7f1bd9cfabfaf89e4d6c83146b4b9af211f Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* update .clang-format header inclusion orderPatrick Venture2018-08-311-2/+4
| | | | | | | | Added the header inclusion order to the .clang-format file generated these changes. Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: Patrick Venture <venture@google.com>
* clang-format-6.0 bump fixesPatrick Venture2018-08-311-1/+1
| | | | | | | The bump to use clang-format-6.0 now reports these issues. Change-Id: Ice27766e161356f08c98923a256a98af787ac8a2 Signed-off-by: Patrick Venture <venture@google.com>
* Spelling fixesGunnar Mills2018-08-141-1/+1
| | | | | | | | | Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. Change-Id: I99921bb9541fb37cb8999337a72d540494fbb4d7 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Remove multiple inheritance from SdBusErrorVernon Mauery2018-08-061-13/+17
| | | | | | | | | | | SdBusError now has a direct line of inheritance down to std::exception and will behave better when trying to catch it as a std::exception. Add test cases to check that SdBusError is actually caught by std::exception and all its other base classes. Change-Id: I83e614219a1c47ec874ee0b4f14096a5e69ac17d Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* SdBusError: Add test casesWilliam A. Kennington III2018-07-091-0/+153
This adds basic unit testing to the SdBusError class so we have full coverage of all the functionality. Tested: Ran through the unit test suite including the changes that build valgrind runs and code coverage suppport. Change-Id: I6d3bdbd2e0332ae5372796cb2a380ccddbee10ec Signed-off-by: William A. Kennington III <wak@google.com>
OpenPOWER on IntegriCloud