DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
// (C) Copyright Gennadiy Rozental 2002-2007. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision: 41369 $ // // Description : simple minimal testing definitions and implementation // *************************************************************************** #ifndef BOOST_TEST_MINIMAL_HPP_071894GER #define BOOST_TEST_MINIMAL_HPP_071894GER #define BOOST_CHECK(exp) \ ( (exp) \ ? static_cast
(0) \ : boost::minimal_test::report_error(#exp,__FILE__,__LINE__, BOOST_CURRENT_FUNCTION) ) #define BOOST_REQUIRE(exp) \ ( (exp) \ ? static_cast
(0) \ : boost::minimal_test::report_critical_error(#exp,__FILE__,__LINE__,BOOST_CURRENT_FUNCTION)) #define BOOST_ERROR( msg_ ) \ boost::minimal_test::report_error( (msg_),__FILE__,__LINE__, BOOST_CURRENT_FUNCTION, true ) #define BOOST_FAIL( msg_ ) \ boost::minimal_test::report_critical_error( (msg_),__FILE__,__LINE__, BOOST_CURRENT_FUNCTION, true ) //____________________________________________________________________________// // Boost.Test #include
#include
#include
#include
#include
// Boost #include
// for exit codes#include
// for exit codes #include
// for BOOST_CURRENT_FUNCTION // STL #include
// std::cerr, std::endl #include
// std::string #include
//____________________________________________________________________________// int test_main( int argc, char* argv[] ); // prototype for users test_main() namespace boost { namespace minimal_test { typedef boost::unit_test::const_string const_string; inline unit_test::counter_t& errors_counter() { static unit_test::counter_t ec = 0; return ec; } inline void report_error( const char* msg, const char* file, int line, const_string func_name, bool is_msg = false ) { ++errors_counter(); std::cerr << file << "(" << line << "): "; if( is_msg ) std::cerr << msg; else std::cerr << "test " << msg << " failed"; if( func_name != "(unknown)" ) std::cerr << " in function: '" << func_name << "'"; std::cerr << std::endl; } inline void report_critical_error( const char* msg, const char* file, int line, const_string func_name, bool is_msg = false ) { report_error( msg, file, line, func_name, is_msg ); throw boost::execution_aborted(); } class caller { public: // constructor caller( int argc, char** argv ) : m_argc( argc ), m_argv( argv ) {} // execution monitor hook implementation int operator()() { return test_main( m_argc, m_argv ); } private: // Data members int m_argc; char** m_argv; }; // monitor } // namespace minimal_test } // namespace boost //____________________________________________________________________________// int BOOST_TEST_CALL_DECL main( int argc, char* argv[] ) { using namespace boost::minimal_test; try { ::boost::execution_monitor ex_mon; int run_result = ex_mon.execute( caller( argc, argv ) ); BOOST_CHECK( run_result == 0 || run_result == boost::exit_success ); } catch( boost::execution_exception const& exex ) { if( exex.code() != boost::execution_exception::no_error ) BOOST_ERROR( (std::string( "exception \"" ). append( exex.what().begin(), exex.what().end() ). append( "\" caught" ) ).c_str() ); std::cerr << "\n**** Testing aborted."; } if( boost::minimal_test::errors_counter() != 0 ) { std::cerr << "\n**** " << errors_counter() << " error" << (errors_counter() > 1 ? "s" : "" ) << " detected\n"; return boost::exit_test_failure; } std::cout << "\n**** no errors detected\n"; return boost::exit_success; } //____________________________________________________________________________// #include
#endif // BOOST_TEST_MINIMAL_HPP_071894GER
minimal.hpp
Page URL
File URL
Prev
10/28
Next
Download
( 4 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.