summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-12-14 03:44:52 (GMT)
committerSteven Knight <knight@baldmt.com>2002-12-14 03:44:52 (GMT)
commit87f783b6bdbdfe77ba3d92f41f7e0e9cda0de2d4 (patch)
tree5360eb8deb9fccf2ce09d1fba6cd3b727f56e834 /test
parent415da53eb50ff3efadc22abfeeba1e7eb1042f71 (diff)
downloadSCons-87f783b6bdbdfe77ba3d92f41f7e0e9cda0de2d4.zip
SCons-87f783b6bdbdfe77ba3d92f41f7e0e9cda0de2d4.tar.gz
SCons-87f783b6bdbdfe77ba3d92f41f7e0e9cda0de2d4.tar.bz2
Make error and warning message consistent. (Anthony Roach)
Diffstat (limited to 'test')
-rw-r--r--test/SConstruct.py2
-rw-r--r--test/SharedLibrary.py4
-rw-r--r--test/dependency-cycle.py2
-rw-r--r--test/errors.py2
-rw-r--r--test/multi.py14
-rw-r--r--test/option--warn.py10
-rw-r--r--test/sconsign.py2
7 files changed, 18 insertions, 18 deletions
diff --git a/test/SConstruct.py b/test/SConstruct.py
index 48f2642..5387053 100644
--- a/test/SConstruct.py
+++ b/test/SConstruct.py
@@ -33,7 +33,7 @@ test.run(arguments = ".",
status = 2,
stdout = "",
stderr = r"""
-SCons error: No SConstruct file found.
+scons: \*\*\* No SConstruct file found.
File "\S+", line \d+, in \S+
""")
diff --git a/test/SharedLibrary.py b/test/SharedLibrary.py
index d54dba4..8659637 100644
--- a/test/SharedLibrary.py
+++ b/test/SharedLibrary.py
@@ -192,12 +192,12 @@ test.run(program = test.workpath('prog'),
stdout = "f1.c\nf2a.c\nf2b.c\nf2c.c\nf3a.c\nf3b.c\nf3c.c\nprog.c\n")
test.run(arguments = '-f SConstructFoo', status=2, stderr='''
-SCons error: Source file: foo\..* is static and is not compatible with shared target: .*
+scons: \*\*\* Source file: foo\..* is static and is not compatible with shared target: .*
'''
)
test.run(arguments = '-f SConstructFoo2', status=2, stderr='''
-SCons error: Source file: bar\..* is shared and is not compatible with static target: .*
+scons: \*\*\* Source file: bar\..* is shared and is not compatible with static target: .*
'''
)
diff --git a/test/dependency-cycle.py b/test/dependency-cycle.py
index 8116a1f..4e4beef 100644
--- a/test/dependency-cycle.py
+++ b/test/dependency-cycle.py
@@ -48,7 +48,7 @@ f1(void)
""")
test.run(arguments = ".", stderr=r"""
-SCons error: Dependency cycle: .*foo1.* -> .*foo3.* -> .*foo2.* -> .*foo1.* -> \.
+scons: \*\*\* Dependency cycle: .*foo1.* -> .*foo3.* -> .*foo2.* -> .*foo1.* -> \.
.*
""", status=2)
diff --git a/test/errors.py b/test/errors.py
index 5f780f2..17ac8eb 100644
--- a/test/errors.py
+++ b/test/errors.py
@@ -95,7 +95,7 @@ raise SCons.Errors.UserError, 'Depends() require both sources and targets.'
test.run(arguments='-f SConstruct2',
stdout = "scons: Reading SConscript files ...\n",
stderr = """
-SCons error: Depends\(\) require both sources and targets.
+scons: \*\*\* Depends\(\) require both sources and targets.
File "SConstruct2", line 4, in \?
""", status=2)
diff --git a/test/multi.py b/test/multi.py
index 79d463e..8273ecf 100644
--- a/test/multi.py
+++ b/test/multi.py
@@ -64,7 +64,7 @@ env.B(target = 'foo.out', source = 'bar.in')
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Multiple ways to build the same target were specified for: foo.out
+scons: *** Multiple ways to build the same target were specified for: foo.out
File "SConstruct", line 10, in ?
""")
@@ -83,7 +83,7 @@ env.B(target = 'foo.out', source = 'bar.in', foo=2)
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Two different sets of overrides were specified for the same target: foo.out
+scons: *** Two different sets of overrides were specified for the same target: foo.out
File "SConstruct", line 10, in ?
""")
@@ -103,7 +103,7 @@ env2.B(target = 'foo.out', source = 'bar.in')
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Two different environments were specified for the same target: foo.out
+scons: *** Two different environments were specified for the same target: foo.out
File "SConstruct", line 11, in ?
""")
@@ -141,7 +141,7 @@ env.C(target = 'foo.out', source = 'bar.in')
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Two different builders (B and C) were specified for the same target: foo.out
+scons: *** Two different builders (B and C) were specified for the same target: foo.out
File "SConstruct", line 14, in ?
""")
@@ -182,7 +182,7 @@ env.B(target = ['bar.out', 'foo.out'], source = 'bar.in')
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Two different target sets have a target in common: bar.out
+scons: *** Two different target sets have a target in common: bar.out
File "SConstruct", line 11, in ?
""")
@@ -209,7 +209,7 @@ env.B(target = ['bar.out', 'blat.out'], source = 'bar.in')
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Two different target sets have a target in common: bar.out
+scons: *** Two different target sets have a target in common: bar.out
File "SConstruct", line 11, in ?
""")
@@ -229,7 +229,7 @@ env.B(target = 'foo.out', source = 'bar.in')
test.run(arguments='foo.out',
status=2,
stderr="""
-SCons error: Two different builders (ListBuilder(B) and B) were specified for the same target: foo.out
+scons: *** Two different builders (ListBuilder(B) and B) were specified for the same target: foo.out
File "SConstruct", line 11, in ?
""")
diff --git a/test/option--warn.py b/test/option--warn.py
index 2471e84..e5660f6 100644
--- a/test/option--warn.py
+++ b/test/option--warn.py
@@ -37,7 +37,7 @@ b=Builder(name='b', action='foo')
""")
test.run(arguments='.', stderr=r"""
-SCons warning: The use of the 'name' parameter to Builder\(\) is deprecated\.
+scons: warning: The use of the 'name' parameter to Builder\(\) is deprecated\.
File "SConstruct", line 2, in \?
""")
@@ -46,7 +46,7 @@ test.run(arguments='--warn=no-deprecated .', stderr='')
test.run(arguments='--warn=no-all .', stderr='')
test.run(arguments='--warn=no-all --warn=deprecated .', stderr=r"""
-SCons warning: The use of the 'name' parameter to Builder\(\) is deprecated\.
+scons: warning: The use of the 'name' parameter to Builder\(\) is deprecated\.
File "SConstruct", line 2, in \?
""")
@@ -64,19 +64,19 @@ test.write("foo.c","""
""")
test.run(arguments='--warn=dependency .', stderr=r"""
-SCons warning: No dependency generated for file: not_there\.h \(included from: foo\.c\) \-\- file not found
+scons: warning: No dependency generated for file: not_there\.h \(included from: foo\.c\) \-\- file not found
File ".+", line \d+, in .+
""")
test.run(arguments='--warn=all .', stderr=r"""
-SCons warning: No dependency generated for file: not_there\.h \(included from: foo\.c\) \-\- file not found
+scons: warning: No dependency generated for file: not_there\.h \(included from: foo\.c\) \-\- file not found
File ".+", line \d+, in .+
""")
test.run(arguments='--warn=all --warn=no-dependency .', stderr="")
test.run(arguments='--warn=no-dependency --warn=all .', stderr=r"""
-SCons warning: No dependency generated for file: not_there\.h \(included from: foo\.c\) \-\- file not found
+scons: warning: No dependency generated for file: not_there\.h \(included from: foo\.c\) \-\- file not found
File ".+", line \d+, in .+
""")
diff --git a/test/sconsign.py b/test/sconsign.py
index ca8792d..5978da3 100644
--- a/test/sconsign.py
+++ b/test/sconsign.py
@@ -84,7 +84,7 @@ env.B1(target = 'sub1/foo.out', source = 'foo.in')
""")
stderr = '''
-SCons warning: Ignoring corrupt .sconsign file: sub1..sconsign
+scons: warning: Ignoring corrupt .sconsign file: sub1..sconsign
.*
'''