• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A lambda-based C++ unit-testing framework.


Commit MetaInfo

Revisãoccfc4b7ee03eabd4ca1f6e8dc49a4fb4a2ab24ee (tree)
Hora2020-05-20 17:27:02
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Call 'terminate' if a libltdl error is detected in destructors

Mudança Sumário

Diff

diff -r ebd65af0e173 -r ccfc4b7ee03e libcppunitx/ltdl_utility.h
--- a/libcppunitx/ltdl_utility.h Wed May 20 17:11:24 2020 +0900
+++ b/libcppunitx/ltdl_utility.h Wed May 20 17:27:02 2020 +0900
@@ -19,7 +19,6 @@
1919 #ifndef LTDL_UTILITY_H
2020 #define LTDL_UTILITY_H 1
2121
22-#include <iostream>
2322 #include <stdexcept>
2423 #include <memory>
2524 #include <cstring>
@@ -60,7 +59,8 @@
6059 {
6160 int result = lt_dlexit();
6261 if (result != 0) {
63- std::cerr << lt_dlerror() << " (ignored)\n";
62+ // This shall not happen.
63+ std::terminate();
6464 }
6565 }
6666 };
@@ -96,7 +96,8 @@
9696 {
9797 int result = lt_dlsetsearchpath(_original_path.get());
9898 if (result != 0) {
99- std::cerr << lt_dlerror() << " (ignored)\n";
99+ // This shall not happen.
100+ std::terminate();
100101 }
101102 }
102103 };
@@ -127,7 +128,8 @@
127128 {
128129 int result = lt_dlclose(_handle);
129130 if (result != 0) {
130- std::cerr << lt_dlerror() << " (ignored)\n";
131+ // This shall not happen.
132+ std::terminate();
131133 }
132134 }
133135