Micro template library A library for building device drivers
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

33 рядки
1.0 KiB

  1. /*!
  2. * \file main.cpp
  3. * \brief Test project main file
  4. *
  5. * Copyright (C) 2018 Christos Choutouridis
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Lesser General Public License as
  9. * published by the Free Software Foundation, either version 3
  10. * of the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. #include <gtest/gtest.h>
  22. #include <exception>
  23. GTEST_API_ int main(int argc, char **argv) try {
  24. testing::InitGoogleTest(&argc, argv);
  25. return RUN_ALL_TESTS();
  26. }
  27. catch (std::exception& e) {
  28. std::cout << "Exception: " << e.what() << '\n';
  29. }