mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 18:40:58 +01:00
tests/assert-msg-test: add exe extension on win32
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
0c4e48e547
commit
06543f6699
@ -59,13 +59,16 @@ class TestAssertMessage(unittest.TestCase):
|
|||||||
self.__gdb = shutil.which("gdb")
|
self.__gdb = shutil.which("gdb")
|
||||||
self.timeout_seconds = 10 # seconds per test
|
self.timeout_seconds = 10 # seconds per test
|
||||||
|
|
||||||
|
ext = ""
|
||||||
|
if os.name == "nt":
|
||||||
|
ext = ".exe"
|
||||||
if "G_TEST_BUILDDIR" in os.environ:
|
if "G_TEST_BUILDDIR" in os.environ:
|
||||||
self.__assert_msg_test = os.path.join(
|
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:
|
else:
|
||||||
self.__assert_msg_test = os.path.join(
|
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)
|
print("assert-msg-test:", self.__assert_msg_test)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user