1#!/usr/bin/python 2 3# Copyright 2003 Vladimir Prus 4# Distributed under the Boost Software License, Version 1.0. 5# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 6 7import BoostBuild 8import string 9 10t = BoostBuild.Tester() 11 12t.write("jamroot.jam", """\ 13lib main : main.cpp l ; 14lib l : l.cpp main ; 15""") 16 17t.write("main.cpp", "") 18t.write("l.cpp", "") 19 20t.run_build_system(["--no-error-backtrace"], status=1) 21t.fail_test(t.stdout().find( 22 "error: Recursion in main target references") == -1) 23 24t.cleanup() 25