summaryrefslogtreecommitdiffstats
path: root/test/build-errors.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-06-05 23:35:56 (GMT)
committerSteven Knight <knight@baldmt.com>2002-06-05 23:35:56 (GMT)
commit2f7d4f660fd048edc342a989d25c94d7b52ab13e (patch)
tree20def5c6f0f7b68ab7151cac4ada5c470a3b31e0 /test/build-errors.py
parent42717c855f7cbb73d3017ac243a34491d3cc0c53 (diff)
downloadSCons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.zip
SCons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.tar.gz
SCons-2f7d4f660fd048edc342a989d25c94d7b52ab13e.tar.bz2
Changes from Charles Crain.
Diffstat (limited to 'test/build-errors.py')
-rw-r--r--test/build-errors.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/build-errors.py b/test/build-errors.py
index ea129fa..956842e 100644
--- a/test/build-errors.py
+++ b/test/build-errors.py
@@ -41,8 +41,8 @@ test.write("f2.in", "\n")
test.write("f3.in", "\n")
test.write('SConstruct1', r"""
-bld = Builder(name = 'bld', action = '%s $SOURCES $TARGET')
-env = Environment(BUILDERS = [bld])
+bld = Builder(action = '%s $SOURCES $TARGET')
+env = Environment(BUILDERS = { 'bld' : bld })
env.bld(target = 'f1', source = 'f1.in')
""" % string.replace(no_such_file, '\\', '\\\\'))
@@ -78,8 +78,8 @@ scons: *** [f1] Error 127
test.write('SConstruct2', r"""
-bld = Builder(name = 'bld', action = '%s $SOURCES $TARGET')
-env = Environment(BUILDERS = [bld])
+bld = Builder(action = '%s $SOURCES $TARGET')
+env = Environment(BUILDERS = { 'bld': bld })
env.bld(target = 'f2', source = 'f2.in')
""" % string.replace(not_executable, '\\', '\\\\'))
@@ -102,8 +102,8 @@ scons: *** [f2] Error 126
""" % not_executable)
test.write('SConstruct3', r"""
-bld = Builder(name = 'bld', action = '%s $SOURCES $TARGET')
-env = Environment(BUILDERS = [bld])
+bld = Builder(action = '%s $SOURCES $TARGET')
+env = Environment(BUILDERS = { 'bld' : bld })
env.bld(target = 'f3', source = 'f3.in')
""" % string.replace(test.workdir, '\\', '\\\\'))