[gjs: 6/9] tests: Expect GTK_IS_WINDOW assertion failure in destroyed window test



commit e5c8367af1c70cebaf6bb4db240735960d9fb8eb
Author: Philip Chimento <philip endlessm com>
Date:   Tue Aug 27 12:08:22 2019 +0300

    tests: Expect GTK_IS_WINDOW assertion failure in destroyed window test
    
    This would otherwise cause a failure with G_DEBUG=fatal-criticals, but
    it is expected.

 installed-tests/js/testGObjectDestructionAccess.js | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/installed-tests/js/testGObjectDestructionAccess.js 
b/installed-tests/js/testGObjectDestructionAccess.js
index 46b7e1de..12079b95 100644
--- a/installed-tests/js/testGObjectDestructionAccess.js
+++ b/installed-tests/js/testGObjectDestructionAccess.js
@@ -39,6 +39,8 @@ describe('Access to destroyed GObject', function () {
     it('Access to getter method', function () {
         GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_CRITICAL,
             'Object Gtk.Window (0x*');
+        GLib.test_expect_message('Gtk', GLib.LogLevelFlags.LEVEL_CRITICAL,
+            '*GTK_IS_WINDOW*');
 
         void destroyedWindow.get_title();
 
@@ -49,6 +51,8 @@ describe('Access to destroyed GObject', function () {
     it('Access to setter method', function () {
         GLib.test_expect_message('Gjs', GLib.LogLevelFlags.LEVEL_CRITICAL,
             'Object Gtk.Window (0x*');
+        GLib.test_expect_message('Gtk', GLib.LogLevelFlags.LEVEL_CRITICAL,
+            '*GTK_IS_WINDOW*');
 
         destroyedWindow.set_title('I am dead');
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]