@@ -18,7 +18,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_default)
1818 SetWalletDir (m_walletdir_path_cases[" default" ]);
1919 bool result = m_wallet_loader->verify ();
2020 BOOST_CHECK (result == true );
21- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
21+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
2222 fs::path expected_path = fs::canonical (m_walletdir_path_cases[" default" ]);
2323 BOOST_CHECK_EQUAL (walletdir, expected_path);
2424}
@@ -28,7 +28,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_custom)
2828 SetWalletDir (m_walletdir_path_cases[" custom" ]);
2929 bool result = m_wallet_loader->verify ();
3030 BOOST_CHECK (result == true );
31- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
31+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
3232 fs::path expected_path = fs::canonical (m_walletdir_path_cases[" custom" ]);
3333 BOOST_CHECK_EQUAL (walletdir, expected_path);
3434}
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_no_trailing)
6868 SetWalletDir (m_walletdir_path_cases[" trailing" ]);
6969 bool result = m_wallet_loader->verify ();
7070 BOOST_CHECK (result == true );
71- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
71+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
7272 fs::path expected_path = fs::canonical (m_walletdir_path_cases[" default" ]);
7373 BOOST_CHECK_EQUAL (walletdir, expected_path);
7474}
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_no_trailing2)
7878 SetWalletDir (m_walletdir_path_cases[" trailing2" ]);
7979 bool result = m_wallet_loader->verify ();
8080 BOOST_CHECK (result == true );
81- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
81+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
8282 fs::path expected_path = fs::canonical (m_walletdir_path_cases[" default" ]);
8383 BOOST_CHECK_EQUAL (walletdir, expected_path);
8484}
0 commit comments