#!/usr/bin/env python
#
-# Copyright (c) 2001 Steven Knight
+# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
-__revision__ = "test/dependency-cycle.py __REVISION__ __DATE__ __DEVELOPER__"
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
import TestCmd
""")
test.write('f1.c', r"""
+#include <stdio.h>
void
f1(void)
{
- printf("f1.c\n");
-}
+ printf("f1.c\n");
+}
""")
-test.run(arguments = ".", stdout = "", stderr=r"""
-SCons error: Dependency cycle: .*foo1.* -> .*foo3.* -> .*foo2.* -> .*foo1.* -> \.
+test.run(arguments = ".", stderr=r"""
+scons: \*\*\* Found dependency cycle\(s\):
+ .*foo1.* -> .*foo3.* -> .*foo2.* -> .*foo1.*
+ .*foo3.* -> .*foo2.* -> .*foo1.* -> .*foo3.*
+
.*
-""")
+""", status=2)
+
+test.fail_test(test.stdout() == "")
test.pass_test()
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: