|
xrootd
|


Go to the source code of this file.
Defines | |
| #define | CPPUNIT_ASSERT_XRDST_NOTOK(x, err) |
| #define | CPPUNIT_ASSERT_XRDST(x) |
| #define | CPPUNIT_ASSERT_ERRNO(x) |
| #define | CPPUNIT_ASSERT_PTHREAD(x) |
| #define CPPUNIT_ASSERT_ERRNO | ( | x | ) |
{ \
std::string msg = "["; msg += #x; msg += "]: "; \
msg += strerror( errno ); \
CPPUNIT_ASSERT_MESSAGE( msg, x ); \
}
Referenced by forkAndRead(), and FileCopyTest::UploadTestFunc().
| #define CPPUNIT_ASSERT_PTHREAD | ( | x | ) |
{ \
errno = x; \
std::string msg = "["; msg += #x; msg += "]: "; \
msg += strerror( errno ); \
CPPUNIT_ASSERT_MESSAGE( msg, errno == 0 ); \
}
Referenced by ThreadingTest::ReadTestFunc().
| #define CPPUNIT_ASSERT_XRDST | ( | x | ) |
{ \
XrdCl::XRootDStatus st = x; \
std::string msg = "["; msg += #x; msg += "]: "; \
msg += st.ToStr(); \
CPPUNIT_ASSERT_MESSAGE( msg, st.IsOK() ); \
}
Referenced by FileSystemTest::ChmodTest(), DataReader(), FileSystemTest::DeepLocateTest(), FileSystemTest::DirListTest(), FileCopyTest::DownloadTestFunc(), PostMasterTest::FunctionalTest(), PollerTest::FunctionTest(), FileSystemTest::LocateTest(), FileSystemTest::MkdirRmdirTest(), PostMasterTest::MultiIPConnectionTest(), FileSystemTest::MvTest(), FileSystemTest::PingTest(), FileSystemTest::PrepareTest(), FileSystemTest::ProtocolTest(), FileTest::ReadTest(), ThreadingTest::ReadTestFunc(), runChild(), FileSystemTest::SendInfoTest(), FileSystemTest::ServerQueryTest(), UtilsTest::SIDManagerTest(), FileSystemTest::StatTest(), FileSystemTest::StatVFSTest(), TestThreadFunc(), FileSystemTest::TruncateRmTest(), FileCopyTest::UploadTestFunc(), and FileTest::VectorReadTest().
| #define CPPUNIT_ASSERT_XRDST_NOTOK | ( | x, | |
| err | |||
| ) |
{ \
XrdCl::XRootDStatus st = x; \
std::string msg = "["; msg += #x; msg += "]: "; \
msg += st.ToStr(); \
CPPUNIT_ASSERT_MESSAGE( msg, !st.IsOK() && st.code == err ); \
}
Referenced by PostMasterTest::FunctionalTest(), and PostMasterTest::MultiIPConnectionTest().
1.7.6.1