summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2012-12-22 20:50:07 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2012-12-22 20:50:07 (GMT)
commitc6b820510ab748fb079a4ef7375ee65a72e52bec (patch)
tree43d7791207c1b3384c5b30996458cef624a79dfa /test
parenta3039311bd6b79c49d9f137ca5e7043ef50f8a77 (diff)
downloadSCons-c6b820510ab748fb079a4ef7375ee65a72e52bec.zip
SCons-c6b820510ab748fb079a4ef7375ee65a72e52bec.tar.gz
SCons-c6b820510ab748fb079a4ef7375ee65a72e52bec.tar.bz2
Make VersionedSharedLib and its test not fail on Windows
Diffstat (limited to 'test')
-rw-r--r--test/LINK/VersionedLib.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py
index 34bef2a..0d45789 100644
--- a/test/LINK/VersionedLib.py
+++ b/test/LINK/VersionedLib.py
@@ -46,6 +46,9 @@ env.Default(instnode)
""")
test.write('test.c', """\
+#if _WIN32
+__declspec(dllexport)
+#endif
int testlib(int n)
{
return n+1 ;
@@ -95,6 +98,18 @@ elif platform == 'darwin':
'libtest.dylib',
'libtest.2.5.4.dylib',
]
+elif platform == 'win32':
+ # All (?) the files we expect will get created in the current directory
+ files = [
+ 'test.dll',
+ 'test.lib',
+ 'test.obj',
+ ]
+ # All (?) the files we expect will get created in the 'installtest' directory
+ instfiles = [
+ 'test.dll',
+ 'test.lib',
+ ]
else:
# All (?) the files we expect will get created in the current directory
files= [