Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix: memory leak in nfs test (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 authored Feb 9, 2021
1 parent cf8a420 commit 124b026
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nfs/test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,15 @@ TEST(nfs, basic)
ASSERT_TRUE(utils::filesystem::file_size("nfs_test_dir_copy/nfs_test_file2", sz2));
ASSERT_EQ(sz1, sz2);
}

nfs->stop();
}

int g_test_ret = 0;
GTEST_API_ int main(int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
dsn_run_config("config.ini", false);
return RUN_ALL_TESTS();
g_test_ret = RUN_ALL_TESTS();
dsn_exit(g_test_ret);
}

0 comments on commit 124b026

Please sign in to comment.