From bd733c1c6e620b99c32dd2cf7dbf34fbeaee3374 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 18 Nov 2021 17:01:05 +0300 Subject: [PATCH] Fix CheckExitGuard test. --- tdutils/test/misc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tdutils/test/misc.cpp b/tdutils/test/misc.cpp index 5d4084561..3cfd9885d 100644 --- a/tdutils/test/misc.cpp +++ b/tdutils/test/misc.cpp @@ -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}; +}