5 #ifndef CVMFS_UTIL_TESTING_H_
6 #define CVMFS_UTIL_TESTING_H_
18 #ifdef CVMFS_NAMESPACE_GUARD
19 namespace CVMFS_NAMESPACE_GUARD {
29 char *value = getenv(env);
32 int fd = open(value, O_RDONLY);
40 action =
Trim(action,
true );
41 if (action !=
"pause")
46 int fd = open(value, O_RDONLY);
51 action =
Trim(action,
true );
52 if (action ==
"resume")
54 if (action ==
"resume one") {
62 #define CVMFS_TEST_INJECT_BARRIER(...) ((void)0)
65 #ifdef CVMFS_NAMESPACE_GUARD
69 #endif // CVMFS_UTIL_TESTING_H_
string Trim(const string &raw, bool trim_newline)
#define CVMFS_TEST_INJECT_BARRIER(...)
bool SafeWriteToFile(const std::string &content, const std::string &path, int mode)
bool SafeReadToString(int fd, std::string *final_result)
void SafeSleepMs(const unsigned ms)
uint32_t Next(const uint64_t boundary)