Re: shell32/tests: Add test for SHGetPathFromIDListA
Zhenbo Li <litimetal(a)gmail.com> wrote:
+void test_SHGetPathFromIDListA(void) +{ + BOOL ret; + char pszPath[MAX_PATH]; + + ret = SHGetPathFromIDListA(NULL, pszPath); + ok(!ret, "SHGetPathFromIDListA should fail.\n"); +}
1. the test should be 'static'. 2. who is supposed to call this test? 3. it would be ineteresting to see whether the tested API should set an error code or somehow indicate a reason of the failure. -- Dmitry.
2014/1/8 Dmitry Timoshkov <dmitry(a)baikal.ru>:
+void test_SHGetPathFromIDListA(void) +{ + BOOL ret; + char pszPath[MAX_PATH]; + + ret = SHGetPathFromIDListA(NULL, pszPath); + ok(!ret, "SHGetPathFromIDListA should fail.\n"); +}
Thank you for reviewing my patch.
1. the test should be 'static'. 2. who is supposed to call this test? Sorry, I've missed them. 3. it would be ineteresting to see whether the tested API should set an error code or somehow indicate a reason of the failure. You're right. I'll check GetLastError() in my patch.
BTW, is putting such code in string.c a good idea? -- Have a nice day! Zhenbo Li
participants (2)
-
Dmitry Timoshkov -
Zhenbo Li