test.write('SConstruct', "")
test.run(arguments = 'foo',
- stderr = "scons: *** Do not know how to make target `foo'. Stop.\n")
+ stderr = "scons: *** Do not know how to make target `foo'. Stop.\n",
+ status = 2)
test.run(arguments = '-k foo/bar foo',
stderr = """scons: *** Do not know how to make target `foo/bar'.
scons: *** Do not know how to make target `foo'.
-""")
+""",
+ status = 2)
test.pass_test()
test.write('SConstruct', "")
test.run(arguments = '-Z',
- stderr = '\nSCons error: option -Z not recognized\nFile "\S+", line \d+, in short_has_arg\n')
+ stderr = """
+SCons error: option -Z not recognized
+File "\S+", line \d+, in short_has_arg
+""",
+ status = 2)
test.run(arguments = '--ZizzerZazzerZuzz',
- stderr = '\nSCons error: option --ZizzerZazzerZuzz not recognized\nFile "\S+", line \d+, in long_has_args\n')
+ stderr = """
+SCons error: option --ZizzerZazzerZuzz not recognized
+File "\S+", line \d+, in long_has_args
+""",
+ status = 2)
test.pass_test()