]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/doc/examples/example21.run.cpp
1 // (C) Copyright Gennadiy Rozental 2011-2015.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/test for the library home page.
9 #define BOOST_TEST_MODULE example
10 #include <boost/test/included/unit_test.hpp>
12 BOOST_AUTO_TEST_CASE( test_init
)
14 int current_time
= 0; // real call is required here
16 BOOST_TEST_MESSAGE( "Testing initialization :" );
17 BOOST_TEST_MESSAGE( "Current time:" << current_time
);
20 BOOST_AUTO_TEST_CASE( test_update
)
22 std::string field_name
= "Volume";
25 BOOST_TEST_MESSAGE( "Testing update :" );
26 BOOST_TEST_MESSAGE( "Update " << field_name
<< " with " << value
);