summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-07-27 22:29:12 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-07-27 22:29:12 +0200
commit3670539091a02de93868af869923e54a276bb029 (patch)
treeefa5ffde95db3753b28bf5a1fe9b649b7c219a66
parent30c948ab9d3d7c69ed30f16fcad36800f7470080 (diff)
downloadgobject-introspection-3670539091a02de93868af869923e54a276bb029.tar.gz
tests: add .exe extension when calling the offset test binary
autotools is picky on Windows and errors out otherwise
-rwxr-xr-xtests/offsets/test_offsets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/offsets/test_offsets.py b/tests/offsets/test_offsets.py
index db10f1c4..84a852dc 100755
--- a/tests/offsets/test_offsets.py
+++ b/tests/offsets/test_offsets.py
@@ -20,7 +20,8 @@ def temp_filename(*args, **kwargs):
class TestOffsets(unittest.TestCase):
def test_main(self):
- gitestoffsets = os.path.join(os.environ["builddir"], "gitestoffsets")
+ exe = ".exe" if os.name == "nt" else ""
+ gitestoffsets = os.path.join(os.environ["builddir"], "gitestoffsets" + exe)
env = os.environ.copy()
env["GI_TYPELIB_PATH"] = os.pathsep.join(