Fix CheckExitGuard test.

This commit is contained in:
levlam 2021-11-18 17:01:05 +03:00
parent 67aa9cad66
commit bd733c1c6e

View File

@ -69,7 +69,6 @@ struct CheckExitGuard {
static CheckExitGuard check_exit_guard_true{true};
static td::ExitGuard exit_guard;
static CheckExitGuard check_exit_guard_false{false};
#if TD_LINUX || TD_DARWIN
TEST(Misc, update_atime_saves_mtime) {
@ -1243,3 +1242,7 @@ TEST(Misc, serialize) {
td::int64 y = -2;
ASSERT_EQ(td::base64_encode(td::serialize(y)), td::base64_encode(td::string("\xfe\xff\xff\xff\xff\xff\xff\xff", 8)));
}
TEST(Misc, check_reset_guard) {
CheckExitGuard check_exit_guard{false};
}