diff options
author | Robert Managan <ramanagan@att.net> | 2013-06-17 15:00:33 (GMT) |
---|---|---|
committer | Robert Managan <ramanagan@att.net> | 2013-06-17 15:00:33 (GMT) |
commit | cd6781b13ad9e019257569c8d18c392347c912fd (patch) | |
tree | e4dc54f8f8fc5f4a440fca996954de8d2a2de301 /test/LINK/VersionedLib.py | |
parent | 64277cb37bfe6430a4b13bf78c42678e795210aa (diff) | |
download | SCons-cd6781b13ad9e019257569c8d18c392347c912fd.zip SCons-cd6781b13ad9e019257569c8d18c392347c912fd.tar.gz SCons-cd6781b13ad9e019257569c8d18c392347c912fd.tar.bz2 |
Add a test to show that we can build when the link already exist
Diffstat (limited to 'test/LINK/VersionedLib.py')
-rw-r--r-- | test/LINK/VersionedLib.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/LINK/VersionedLib.py b/test/LINK/VersionedLib.py index 0d45789..df194d8 100644 --- a/test/LINK/VersionedLib.py +++ b/test/LINK/VersionedLib.py @@ -123,6 +123,19 @@ for f in files: for f in instfiles:
test.must_exist(['installtest', f])
+# modify test.c and make sure it can recompile when links already exist
+test.write('test.c', """\
+#if _WIN32
+__declspec(dllexport)
+#endif
+int testlib(int n)
+{
+return n+11 ;
+}
+""")
+
+print test.run()
+
test.run(arguments = '-c')
for f in files:
|