summaryrefslogtreecommitdiffstats
path: root/test/long-lines.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-04-22 19:21:26 (GMT)
committerSteven Knight <knight@baldmt.com>2002-04-22 19:21:26 (GMT)
commit74f98d3083cfbb859bf032dba37ed14bbb5219dd (patch)
tree331e7f6b4cb4d8ec98a4cce203ab22f4ba893f9b /test/long-lines.py
parent9afa958bb1b299c47b3197589ab7b9b89686cc6b (diff)
downloadSCons-74f98d3083cfbb859bf032dba37ed14bbb5219dd.zip
SCons-74f98d3083cfbb859bf032dba37ed14bbb5219dd.tar.gz
SCons-74f98d3083cfbb859bf032dba37ed14bbb5219dd.tar.bz2
Several bug fixes from Charles Crain.
Diffstat (limited to 'test/long-lines.py')
-rw-r--r--test/long-lines.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/long-lines.py b/test/long-lines.py
index bde101a..9cf24d8 100644
--- a/test/long-lines.py
+++ b/test/long-lines.py
@@ -25,6 +25,7 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
+import os.path
import string
import sys
import TestSCons
@@ -32,8 +33,12 @@ import TestSCons
test = TestSCons.TestSCons()
if sys.platform == 'win32':
+ lib_=''
+ _dll = '.dll'
linkflag = '/LIBPATH:' + test.workpath()
else:
+ lib_='lib'
+ _dll='.so'
linkflag = '-L' + test.workpath()
test.write('SConstruct', """
@@ -42,6 +47,8 @@ while len(linkflags) <= 8100:
linkflags = linkflags + r' %s'
env = Environment(LINKFLAGS = '$LINKXXX', LINKXXX = linkflags)
env.Program(target = 'foo', source = 'foo.c')
+# Library(shared=1) uses $LINKFLAGS by default.
+env.Library(target = 'bar', source = 'foo.c', shared=1)
""" % (linkflag, linkflag))
test.write('foo.c', r"""
@@ -58,4 +65,6 @@ test.run(arguments = '.')
test.run(program = test.workpath('foo'), stdout = "foo.c\n")
+test.fail_test(not os.path.exists(lib_+'bar'+_dll))
+
test.pass_test()