19 #include <system_error> 21 #include <boost/algorithm/string.hpp> 22 #include <glog/logging.h> 29 using namespace folly;
41 ssize_t r =
write(fd, &c, 1);
49 ssize_t r =
write(fd, &c, 1);
50 int savedErrno = errno;
126 fs::path fp = path /
"bar";
127 int fd = open(fp.string().c_str(), O_RDWR | O_CREAT | O_TRUNC, 0666);
153 std::unique_ptr<TemporaryDirectory> dir;
162 dir = std::make_unique<TemporaryDirectory>(
std::move(d));
171 auto pwd1 = fs::current_path();
179 TEST(PCREPatternMatch, Simple) {
187 LOG(
INFO) <<
"All is well";
190 LOG(ERROR) <<
"Uh-oh";
206 std::vector<std::string>
chunks;
209 chunks.emplace_back(p.
str());
210 switch (chunks.size()) {
218 FAIL() <<
"Got too many chunks: " << chunks.size();
224 auto chunk = err.readIncremental();
#define EXPECT_LE(val1, val2)
void write(const T &in, folly::io::Appender &appender)
#define EXPECT_THROW(statement, expected_exception)
#define EXPECT_NO_PCRE_MATCH(pattern_stringpiece, target_stringpiece)
#define EXPECT_PCRE_MATCH(pattern_stringpiece, target_stringpiece)
#define EXPECT_EQ(val1, val2)
std::string readIncremental()
constexpr detail::Map< Move > move
—— Concurrent Priority Queue Implementation ——
void expectTempdirExists(const TemporaryDirectory &d)
auto msvcSuppressAbortOnInvalidParams(Func func) -> decltype(func())
std::string glogErrOrWarnPattern()
void testTemporaryDirectory(TemporaryDirectory::Scope scope)
std::string glogWarningPattern()
const fs::path & path() const
std::string glogErrorPattern()
TEST(ProgramOptionsTest, Errors)
#define EXPECT_TRUE(condition)
#define EXPECT_NE(val1, val2)
#define EXPECT_FALSE(condition)
int close(NetworkSocket s)
const fs::path & path() const
bool starts_with(const path &pth, const path &prefix)