[glib: 2/12] tests/assert-msg-test: add exe extension on win32




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

    tests/assert-msg-test: add exe extension on win32
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 glib/tests/assert-msg-test.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/glib/tests/assert-msg-test.py b/glib/tests/assert-msg-test.py
index 01bedce91b..603bfc4599 100755
--- a/glib/tests/assert-msg-test.py
+++ b/glib/tests/assert-msg-test.py
@@ -59,13 +59,16 @@ class TestAssertMessage(unittest.TestCase):
         self.__gdb = shutil.which("gdb")
         self.timeout_seconds = 10  # seconds per test
 
+        ext = ""
+        if os.name == "nt":
+            ext = ".exe"
         if "G_TEST_BUILDDIR" in os.environ:
             self.__assert_msg_test = os.path.join(
-                os.environ["G_TEST_BUILDDIR"], "assert-msg-test"
+                os.environ["G_TEST_BUILDDIR"], "assert-msg-test" + ext
             )
         else:
             self.__assert_msg_test = os.path.join(
-                os.path.dirname(__file__), "assert-msg-test"
+                os.path.dirname(__file__), "assert-msg-test" + ext
             )
         print("assert-msg-test:", self.__assert_msg_test)
 


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