diff options
author | Kiminuo <kiminuo@protonmail.com> | 2021-02-26 09:56:11 +0100 |
---|---|---|
committer | Kiminuo <kiminuo@protonmail.com> | 2021-04-18 11:59:28 +0200 |
commit | 83292e2a700afbf39936bd67bb89fab5398d0066 (patch) | |
tree | 135e7629f87517f3e309d5cfd6f6a02ed1ee5c72 /src/test/fs_tests.cpp | |
parent | 55c68e6f011ee604c8a65b9bca668eb4dec452aa (diff) | |
download | bitcoin-83292e2a700afbf39936bd67bb89fab5398d0066.tar.xz |
scripted-diff: Modify unit tests to use the ArgsManager in the BasicTestingSetup class instead of implicitly relying on gArgs.
-BEGIN VERIFY SCRIPT-
git ls-files src/test/dbwrapper_tests.cpp src/test/denialofservice_tests.cpp src/test/flatfile_tests.cpp src/test/fs_tests.cpp src/test/settings_tests.cpp src/test/util_tests.cpp | xargs sed -i 's/GetDataDir()/m_args.GetDataDirPath()/g';
-END VERIFY SCRIPT-
Diffstat (limited to 'src/test/fs_tests.cpp')
-rw-r--r-- | src/test/fs_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fs_tests.cpp b/src/test/fs_tests.cpp index e52cd5230c..452bc06bbb 100644 --- a/src/test/fs_tests.cpp +++ b/src/test/fs_tests.cpp @@ -13,7 +13,7 @@ BOOST_FIXTURE_TEST_SUITE(fs_tests, BasicTestingSetup) BOOST_AUTO_TEST_CASE(fsbridge_fstream) { - fs::path tmpfolder = GetDataDir(); + fs::path tmpfolder = m_args.GetDataDirPath(); // tmpfile1 should be the same as tmpfile2 fs::path tmpfile1 = tmpfolder / "fs_tests_₿_🏃"; fs::path tmpfile2 = tmpfolder / "fs_tests_₿_🏃"; |