Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/tools/build/v2/test/check-test-tools.jam @ 32

Last change on this file since 32 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 809 bytes
Line 
1# Copyright 2001 Dave Abrahams
2# Distributed under the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
4
5include recursive.jam ;
6include assert-equal.jam ;
7
8#####################################
9# Test the testing tools right here #
10#####################################
11
12# This command always exits with a failure.
13Jam-fail "EXIT error ;" ;
14
15# This should fail to fail
16Jam-fail
17     "include recursive.jam ; Jam-fail \"# this innocuous Jamfile should fail to fail\" ;"
18      ;
19
20# the ECHO rule always has an empty result.
21Jam-fail "include assert-equal.jam ; assert-equal fubar : ECHO checking that assertions fail ;"
22    : "ASSERTION FAILURE"
23    ;
24
25local NOTHING = ;
26assert-equal $(NOTHING) : ECHO checking that assertions succeed ;
Note: See TracBrowser for help on using the repository browser.