mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 09:23:13 +01:00
59d74aea1f
git-subtree-dir: vendor/github.com/muflihun/easyloggingpp git-subtree-split: 850ea2a9f151ed648a989dda1cf44e503e45831f
19 lines
481 B
C++
19 lines
481 B
C++
#ifndef PLOG_TEST_H
|
|
#define PLOG_TEST_H
|
|
|
|
#include "test.h"
|
|
|
|
TEST(PLogTest, WriteLog) {
|
|
std::fstream file("/tmp/a/file/that/does/not/exist.txt", std::fstream::in);
|
|
if (file.is_open()) {
|
|
// We dont expect to open file
|
|
FAIL();
|
|
}
|
|
PLOG(INFO) << "This is plog";
|
|
std::string expected = BUILD_STR(getDate() << " This is plog: No such file or directory [2]\n");
|
|
std::string actual = tail(1);
|
|
EXPECT_EQ(expected, actual);
|
|
}
|
|
|
|
#endif // PLOG_TEST_H
|