diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-16 18:06:06 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-06-16 18:09:39 +0800 |
commit | a9d6846f9218ef131ec4b3ca8d31284f64f1b8a5 (patch) | |
tree | 4be29062287437068989804f7955c1b1c9c48a45 /Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp | |
parent | 8f372c867d0717560640d513058bda9af24335e5 (diff) | |
download | go-tangerine-a9d6846f9218ef131ec4b3ca8d31284f64f1b8a5.tar.gz go-tangerine-a9d6846f9218ef131ec4b3ca8d31284f64f1b8a5.tar.zst go-tangerine-a9d6846f9218ef131ec4b3ca8d31284f64f1b8a5.zip |
Update ethash Godep
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp index 1933e03e3..44e0c385b 100644 --- a/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/test/c/test.cpp @@ -292,12 +292,13 @@ BOOST_AUTO_TEST_CASE(test_ethash_io_memo_file_size_mismatch) { BOOST_AUTO_TEST_CASE(test_ethash_get_default_dirname) { char result[256]; - // this is really not an easy thing to test for in a unit test, so yeah it does look ugly + // this is really not an easy thing to test for in a unit test + // TODO: Improve this test ... #ifdef _WIN32 char homedir[256]; - BOOST_REQUIRE(SUCCEEDED(SHGetFolderPathW(NULL, CSIDL_PROFILE, NULL, 0, (WCHAR*)homedir))); + BOOST_REQUIRE(SUCCEEDED(SHGetFolderPathA(NULL, CSIDL_PROFILE, NULL, 0, (CHAR*)homedir))); BOOST_REQUIRE(ethash_get_default_dirname(result, 256)); - std::string res = std::string(homedir) + std::string("\\Appdata\\Ethash\\"); + std::string res = std::string(homedir) + std::string("\\AppData\\Local\\Ethash\\"); #else char* homedir = getenv("HOME"); BOOST_REQUIRE(ethash_get_default_dirname(result, 256)); @@ -305,7 +306,7 @@ BOOST_AUTO_TEST_CASE(test_ethash_get_default_dirname) { #endif BOOST_CHECK_MESSAGE(strcmp(res.c_str(), result) == 0, "Expected \"" + res + "\" but got \"" + std::string(result) + "\"" - ); + ); } BOOST_AUTO_TEST_CASE(light_and_full_client_checks) { |