@@ -148,7 +148,7 @@ TEST(FSEnt, DirCreate)
148148
149149 EXPECT_FALSE (sf::exists (tp));
150150
151- bool existed;
151+ bool existed{ false } ;
152152 int ret = testdir->create (env->dpp , &existed);
153153
154154 EXPECT_EQ (ret, 0 );
@@ -165,7 +165,7 @@ TEST(FSEnt, DirBase)
165165
166166 EXPECT_FALSE (sf::exists (tp));
167167
168- bool existed;
168+ bool existed{ false } ;
169169 int ret = testdir->create (env->dpp , &existed);
170170
171171 EXPECT_EQ (ret, 0 );
@@ -280,7 +280,7 @@ TEST(FSEnt, DirBase)
280280
281281TEST (FSEnt, DirAddDir)
282282{
283- bool existed;
283+ bool existed{ false } ;
284284 std::string dirname = get_test_name ();
285285 sf::path tp{base_path / dirname};
286286 std::unique_ptr<Directory> testdir = std::make_unique<Directory>(dirname, root.get (), env->cct .get ());
@@ -314,7 +314,7 @@ TEST(FSEnt, DirAddDir)
314314
315315TEST (FSEnt, DirRename)
316316{
317- bool existed;
317+ bool existed{ false } ;
318318 std::string dirname = get_test_name ();
319319 sf::path tp{base_path / dirname};
320320 std::unique_ptr<Directory> testdir = std::make_unique<Directory>(dirname, root.get (), env->cct .get ());
@@ -357,7 +357,7 @@ TEST(FSEnt, FileCreateReal)
357357
358358 EXPECT_FALSE (sf::exists (tp));
359359
360- bool existed;
360+ bool existed{ false } ;
361361 int ret = testfile.create (env->dpp , &existed);
362362
363363 EXPECT_EQ (ret, 0 );
@@ -374,7 +374,7 @@ TEST(FSEnt, FileCreateTemp)
374374
375375 EXPECT_FALSE (sf::exists (tp));
376376
377- bool existed;
377+ bool existed{ false } ;
378378 int ret = testfile.create (env->dpp , &existed, true );
379379 EXPECT_EQ (ret, 0 );
380380 EXPECT_FALSE (existed);
@@ -396,7 +396,7 @@ TEST(FSEnt, FileBase)
396396 EXPECT_FALSE (sf::exists (tp));
397397 EXPECT_EQ (testfile->get_fd (), -1 );
398398
399- bool existed;
399+ bool existed{ false } ;
400400 int ret = testfile->create (env->dpp , &existed);
401401
402402 EXPECT_EQ (ret, 0 );
@@ -530,7 +530,7 @@ TEST(FSEnt, SymlinkBase)
530530
531531 EXPECT_FALSE (sf::exists (tp));
532532
533- bool existed;
533+ bool existed{ false } ;
534534 int ret = testlink->create (env->dpp , &existed);
535535
536536 EXPECT_EQ (ret, 0 );
@@ -562,7 +562,7 @@ TEST(FSEnt, MPDirBase)
562562
563563 EXPECT_FALSE (sf::exists (tp));
564564
565- bool existed;
565+ bool existed{ false } ;
566566 int ret = testdir->create (env->dpp , &existed);
567567
568568 EXPECT_EQ (ret, 0 );
@@ -680,7 +680,7 @@ TEST(FSEnt, MPDirTemp)
680680
681681 EXPECT_FALSE (sf::exists (tp));
682682
683- bool existed;
683+ bool existed{ false } ;
684684 int ret = testdir->create (env->dpp , &existed, true );
685685
686686 EXPECT_EQ (ret, 0 );
@@ -771,7 +771,7 @@ TEST(FSEnt, VerDirBase)
771771
772772 EXPECT_FALSE (sf::exists (tp));
773773
774- bool existed;
774+ bool existed{ false } ;
775775 int ret = testdir->create (env->dpp , &existed);
776776
777777 EXPECT_EQ (ret, 0 );
0 commit comments