コード例 #1
0
ファイル: llerror_tut.cpp プロジェクト: Nora28/imprudence
		// output order
	void ErrorTestObject::test<10>()
	{
		LLError::setPrintLocation(true);
		LLError::setTimeFunction(roswell);
		mRecorder.setWantsTime(true);
		std::string locationAndFunction = writeReturningLocationAndFunction();
		
		ensure_equals("order is time type location function message",
			mRecorder.message(0),
			roswell() + " INFO: " + locationAndFunction + ": apple");
	}
コード例 #2
0
		// output order
	void ErrorTestObject::test<10>()
	{
#if LL_LINUX
        skip("Fails on Linux, see comments");
// on Linux:
// [error, 10] fail: 'order is time type location function message: expected
// '1947-07-08T03:04:05Z INFO: llcommon/tests/llerror_test.cpp(268) :
// writeReturningLocationAndFunction: apple' actual
// '1947-07-08T03:04:05Z INFO: llcommon/tests/llerror_test.cpp(268) :
// LLError::NoClassInfo::writeReturningLocationAndFunction: apple''
#endif
		LLError::setPrintLocation(true);
		LLError::setTimeFunction(roswell);
		mRecorder.setWantsTime(true);
		std::string locationAndFunction = writeReturningLocationAndFunction();
		
		ensure_equals("order is time type location function message",
			mRecorder.message(0),
			roswell() + " INFO: " + locationAndFunction + ": apple");
	}