summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2017-06-08 09:08:09 (GMT)
committerRussel Winder <russel@winder.org.uk>2017-06-08 09:08:09 (GMT)
commita057ea49ae3c10c5ddd2be6232a38b110fe7159c (patch)
tree8ce8fd3e20117c75feaf4f4d0cab7a1e3838392b /test
parentbd8074e30b1fdd8837e6958609c76a919569c65c (diff)
parent10e94d6ef13b7b336d6edada3864c58ddeb1b114 (diff)
downloadSCons-a057ea49ae3c10c5ddd2be6232a38b110fe7159c.zip
SCons-a057ea49ae3c10c5ddd2be6232a38b110fe7159c.tar.gz
SCons-a057ea49ae3c10c5ddd2be6232a38b110fe7159c.tar.bz2
Merge new changesets to this bookmark.
Diffstat (limited to 'test')
-rw-r--r--test/D/SharedObjects/Common/common.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/D/SharedObjects/Common/common.py b/test/D/SharedObjects/Common/common.py
index 280c6f2..0322385 100644
--- a/test/D/SharedObjects/Common/common.py
+++ b/test/D/SharedObjects/Common/common.py
@@ -32,6 +32,7 @@ import TestSCons
from SCons.Environment import Base
from os.path import abspath, dirname
+from subprocess import check_output
import sys
sys.path.insert(1, abspath(dirname(__file__) + '/../../Support'))
@@ -46,7 +47,11 @@ def testForTool(tool):
test.skip_test("Required executable for tool '{0}' not found, skipping test.\n".format(tool))
if tool == 'gdc':
- test.skip_test('gdc in GCC distribution does not, as at version 5.3.1, support shared libraries.\n')
+ result = check_output(('gdc', '--version'))
+ version = result.decode().splitlines()[0].split()[3]
+ major, minor, debug = [int(x) for x in version.split('.')]
+ if (major < 6) or (major == 6 and minor < 3):
+ test.skip_test('gdc prior to version 6.0.0 does not support shared libraries.\n')
if tool == 'dmd' and Base()['DC'] == 'gdmd':
test.skip_test('gdmd does not recognize the -shared option so cannot support linking of shared objects.\n')