Ticket #5235: uuid_test.patch

File uuid_test.patch, 3.8 KB (added by Chris Jefferson, 12 years ago)

Corrected patch for uuid testsuite

  • libs/uuid/test/test_uuid.cpp

     
    1212#include <boost/uuid/uuid.hpp>
    1313#include <boost/uuid/uuid_io.hpp>
    1414#include <boost/detail/lightweight_test.hpp>
    15 #include "lightweight_test_ex.hpp"
    1615#include <boost/functional/hash.hpp>
    1716#include <boost/current_function.hpp>
    1817
  • libs/uuid/test/lightweight_test_ex.hpp

     
    1 //  (C) Copyright Andy Tompkins 2010. Permission to copy, use, modify, sell and
    2 //  distribute this software is granted provided this copyright notice appears
    3 //  in all copies. This software is provided "as is" without express or implied
    4 //  warranty, and with no claim as to its suitability for any purpose.
    5 
    6 // Distributed under the Boost Software License, Version 1.0. (See
    7 // accompanying file LICENSE_1_0.txt or copy at
    8 // http://www.boost.org/LICENSE_1_0.txt)
    9 
    10 //  libs/uuid/test/lightweight_test_ex.hpp  -------------------------------//
    11 
    12 //  BOOST_TEST_NE(expr1, expr2)
    13 
    14 #ifndef BOOST_UUID_TEST_LIGHTWEIGHT_TEST_EX_HPP
    15 #define BOOST_UUID_TEST_LIGHTWEIGHT_TEST_EX_HPP
    16 
    17 #include <boost/detail/lightweight_test.hpp>
    18 
    19 namespace boost {
    20 namespace detail {
    21 
    22 template<class T, class U> inline void test_ne_impl( char const * expr1, char const * expr2, char const * file, int line, char const * function, T const & t, U const & u )
    23 {
    24     if( t != u )
    25     {
    26     }
    27     else
    28     {
    29         std::cerr << file << "(" << line << "): test '" << expr1 << " != " << expr2
    30             << "' failed in function '" << function << "': "
    31             << "'" << t << "' == '" << u << "'" << std::endl;
    32         ++test_errors();
    33     }
    34 }
    35 
    36 }} // namespace boost::detail
    37 
    38 #define BOOST_TEST_NE(expr1,expr2) ( ::boost::detail::test_ne_impl(#expr1, #expr2, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION, expr1, expr2) )
    39 
    40 #endif //BOOST_UUID_TEST_LIGHTWEIGHT_TEST_EX_HPP
  • libs/uuid/test/test_tagging.cpp

     
    1212#include <boost/uuid/uuid.hpp>
    1313#include <boost/uuid/uuid_generators.hpp>
    1414#include <boost/detail/lightweight_test.hpp>
    15 #include "lightweight_test_ex.hpp"
    1615
    1716class object
    1817{
  • libs/uuid/test/test_random_generator.cpp

     
    1313#include <boost/uuid/random_generator.hpp>
    1414#include <boost/uuid/uuid_io.hpp>
    1515#include <boost/detail/lightweight_test.hpp>
    16 #include "lightweight_test_ex.hpp"
    1716#include <boost/random.hpp>
    1817
    1918template <typename RandomUuidGenerator>
  • libs/uuid/test/test_uuid_class.cpp

     
    1414#include <boost/uuid/uuid_io.hpp>
    1515
    1616#include <boost/detail/lightweight_test.hpp>
    17 #include "lightweight_test_ex.hpp"
    1817
    1918class uuid_class : public boost::uuids::uuid
    2019{
  • libs/uuid/test/test_sha1.cpp

     
    1111
    1212#include <boost/uuid/sha1.hpp>
    1313#include <boost/detail/lightweight_test.hpp>
    14 #include "lightweight_test_ex.hpp"
    1514#include <algorithm>
    1615#include <cstring>
    1716#include <cstddef>