[gjs/gnome-40] Use g_assert_true in test tools
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/gnome-40] Use g_assert_true in test tools
- Date: Sat, 18 Sep 2021 19:34:55 +0000 (UTC)
commit c7a9123e10174a9d7592e3c0a6d7f7970d7064d7
Author: Evan Welsh <contact evanwelsh com>
Date: Wed Aug 25 22:40:29 2021 -0700
Use g_assert_true in test tools
g_assert can't be used in test suites with -DG_DISABLE_ASSERT
Fixes #436
installed-tests/js/libgjstesttools/gjs-test-tools.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/installed-tests/js/libgjstesttools/gjs-test-tools.cpp
b/installed-tests/js/libgjstesttools/gjs-test-tools.cpp
index 036202d8..066c34f1 100644
--- a/installed-tests/js/libgjstesttools/gjs-test-tools.cpp
+++ b/installed-tests/js/libgjstesttools/gjs-test-tools.cpp
@@ -78,7 +78,7 @@ void gjs_test_tools_save_object(GObject* object) {
void gjs_test_tools_save_object_unreffed(GObject* object) {
GObject* expected = nullptr;
- g_assert(m_tmp_object.compare_exchange_strong(expected, object));
+ g_assert_true(m_tmp_object.compare_exchange_strong(expected, object));
}
void gjs_test_tools_clear_saved() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]