[glib: 4/12] tests/assert-msg-test: abort() exit code is 3 on win32




commit 6dcd7fe5e8dd5bf8a367dff1a4281fb922144b50
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Fri Oct 14 14:04:18 2022 +0400

    tests/assert-msg-test: abort() exit code is 3 on win32
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 glib/tests/assert-msg-test.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/glib/tests/assert-msg-test.py b/glib/tests/assert-msg-test.py
index ddb12d5956..ca0f559c4f 100755
--- a/glib/tests/assert-msg-test.py
+++ b/glib/tests/assert-msg-test.py
@@ -134,7 +134,10 @@ class TestAssertMessage(unittest.TestCase):
         """Test running g_assert() and fail the program."""
         result = self.runAssertMessage()
 
-        self.assertEqual(result.info.returncode, -6)
+        if os.name == "nt":
+            self.assertEqual(result.info.returncode, 3)
+        else:
+            self.assertEqual(result.info.returncode, -6)
         self.assertIn("assertion failed: (42 < 0)", result.out)
 
     def test_gdb_gassert(self):


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