@@ -18,7 +18,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_default)
18
18
SetWalletDir (m_walletdir_path_cases[" default" ]);
19
19
bool result = m_wallet_loader->verify ();
20
20
BOOST_CHECK (result == true );
21
- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
21
+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
22
22
fs::path expected_path = fs::canonical (m_walletdir_path_cases[" default" ]);
23
23
BOOST_CHECK_EQUAL (walletdir, expected_path);
24
24
}
@@ -28,7 +28,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_custom)
28
28
SetWalletDir (m_walletdir_path_cases[" custom" ]);
29
29
bool result = m_wallet_loader->verify ();
30
30
BOOST_CHECK (result == true );
31
- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
31
+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
32
32
fs::path expected_path = fs::canonical (m_walletdir_path_cases[" custom" ]);
33
33
BOOST_CHECK_EQUAL (walletdir, expected_path);
34
34
}
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_no_trailing)
68
68
SetWalletDir (m_walletdir_path_cases[" trailing" ]);
69
69
bool result = m_wallet_loader->verify ();
70
70
BOOST_CHECK (result == true );
71
- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
71
+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
72
72
fs::path expected_path = fs::canonical (m_walletdir_path_cases[" default" ]);
73
73
BOOST_CHECK_EQUAL (walletdir, expected_path);
74
74
}
@@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_no_trailing2)
78
78
SetWalletDir (m_walletdir_path_cases[" trailing2" ]);
79
79
bool result = m_wallet_loader->verify ();
80
80
BOOST_CHECK (result == true );
81
- fs::path walletdir = fs::PathFromString ( gArgs .GetArg (" -walletdir" , " " ) );
81
+ fs::path walletdir = gArgs .GetPathArg (" -walletdir" );
82
82
fs::path expected_path = fs::canonical (m_walletdir_path_cases[" default" ]);
83
83
BOOST_CHECK_EQUAL (walletdir, expected_path);
84
84
}
0 commit comments