• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonbathyscaphephpgamewindowsguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

New lambda-based xUnit-style unit-testing framework for C++.


Commit MetaInfo

Revisãoa7ba6f5052e3cac915a5520d6e68db31f8cbd110 (tree)
Hora2020-01-23 21:52:00
AutorKaz Nishimura <kazssym@linu...>
CommiterKaz Nishimura

Mensagem de Log

Use 'lt_dlerror' for error text

Mudança Sumário

Diff

diff -r 4526ee8e6602 -r a7ba6f5052e3 libcppunitx/ltdl_utility.h
--- a/libcppunitx/ltdl_utility.h Thu Jan 23 20:16:12 2020 +0900
+++ b/libcppunitx/ltdl_utility.h Thu Jan 23 21:52:00 2020 +0900
@@ -32,7 +32,7 @@
3232 {
3333 int result = lt_dlinit();
3434 if (result != 0) {
35- throw std::runtime_error("'lt_dlinit' failed");
35+ throw std::runtime_error(lt_dlerror());
3636 }
3737 }
3838
@@ -41,7 +41,7 @@
4141 int result = lt_dlexit();
4242 if (result != 0) {
4343 // Destructors cannot throw exceptions.
44- std::fprintf(stderr, "'lt_dlexit' failed\n");
44+ std::fprintf(stderr, "'%s\n", lt_dlerror());
4545 }
4646 }
4747 };
@@ -57,7 +57,7 @@
5757 {
5858 if (handle == 0) {
5959 throw std::runtime_error(
60- std::string(name) + ": 'lt_dlopen' failed");
60+ std::string(name) + ": " + lt_dlerror());
6161 }
6262 }
6363
@@ -66,7 +66,7 @@
6666 int result = lt_dlclose(handle);
6767 if (result != 0) {
6868 // Destructors cannot throw exceptions.
69- std::fprintf(stderr, "'lt_dlclose' failed\n");
69+ std::fprintf(stderr, "%s\n", lt_dlerror());
7070 }
7171 }
7272 };