summaryrefslogtreecommitdiffstats
path: root/test/D/Issues
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2014-09-14 16:27:51 (GMT)
committerRussel Winder <russel@winder.org.uk>2014-09-14 16:27:51 (GMT)
commita7cd008ff19d54fc63f8a22cbec00d12e743c800 (patch)
treebd0759c497b84500377ecc5a4035d9c62b2915ca /test/D/Issues
parentb4a7c2ef597d5659c67468cdac7705554f08e94c (diff)
downloadSCons-a7cd008ff19d54fc63f8a22cbec00d12e743c800.zip
SCons-a7cd008ff19d54fc63f8a22cbec00d12e743c800.tar.gz
SCons-a7cd008ff19d54fc63f8a22cbec00d12e743c800.tar.bz2
Refactoring and amendment to ensure correct behaviour of D tool shared library tests on OSX.
Diffstat (limited to 'test/D/Issues')
-rw-r--r--test/D/Issues/2940_Ariovistus/Common/correctLinkOptions.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/D/Issues/2940_Ariovistus/Common/correctLinkOptions.py b/test/D/Issues/2940_Ariovistus/Common/correctLinkOptions.py
index d44c9bd..0aaa283 100644
--- a/test/D/Issues/2940_Ariovistus/Common/correctLinkOptions.py
+++ b/test/D/Issues/2940_Ariovistus/Common/correctLinkOptions.py
@@ -45,25 +45,27 @@ def testForTool(tool):
if not isExecutableOfToolAvailable(test, tool) :
test.skip_test("Required executable for tool '{}' not found, skipping test.\n".format(tool))
- test.dir_fixture('Project')
- test.write('SConstruct', open('SConstruct_template', 'r').read().format('tools=["{}", "link"]'.format(tool)))
-
- test.run()
-
platform = Base()['PLATFORM']
-
if platform == 'posix':
libraryname = 'libstuff.so'
filename = 'stuff.os'
elif platform == 'darwin':
libraryname = 'libstuff.dylib'
filename = 'stuff.os'
+ # As at 2014-09-14, DMD 2.066, LDC master head, and GDC 4.9.1 do not support
+ # shared libraries on OSX.
+ test.skip_test('Dynamic libraries not yet supported on OSX.\n')
elif platform == 'win32':
libraryname = 'stuff.dll'
filename = 'stuff.obj'
else:
test.fail_test('No information about platform: ' + platform)
+ test.dir_fixture('Project')
+ test.write('SConstruct', open('SConstruct_template', 'r').read().format('tools=["{}", "link"]'.format(tool)))
+
+ test.run()
+
for f in (libraryname, filename, 'test1', 'test1.o', 'test2', 'test2.o'):
test.must_exist(test.workpath(join('test', 'test1', f)))