diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-27 22:29:12 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-27 22:29:12 +0200 |
commit | 3670539091a02de93868af869923e54a276bb029 (patch) | |
tree | efa5ffde95db3753b28bf5a1fe9b649b7c219a66 /tests/offsets | |
parent | 30c948ab9d3d7c69ed30f16fcad36800f7470080 (diff) | |
download | gobject-introspection-3670539091a02de93868af869923e54a276bb029.tar.gz |
tests: add .exe extension when calling the offset test binary
autotools is picky on Windows and errors out otherwise
Diffstat (limited to 'tests/offsets')
-rwxr-xr-x | tests/offsets/test_offsets.py | 3 |
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( |