[gjs/ewlsh/fix-ci-dassert] Use g_assert_true in test tools




commit 45ac5f2f5e4ff8f61ddbff41690a560845882b21
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 e52b6e66..ce79366c 100644
--- a/installed-tests/js/libgjstesttools/gjs-test-tools.cpp
+++ b/installed-tests/js/libgjstesttools/gjs-test-tools.cpp
@@ -87,7 +87,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]