Commit a49dd715 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shlwapi/tests: Use win_skip() to skip over unimplemented functionality.

parent 80b8a0b5
...@@ -464,7 +464,7 @@ static void test_SHPackDispParams(void) ...@@ -464,7 +464,7 @@ static void test_SHPackDispParams(void)
HRESULT hres; HRESULT hres;
if(!pSHPackDispParams) if(!pSHPackDispParams)
skip("SHPackSidpParams not available\n"); win_skip("SHPackSidpParams not available\n");
memset(&params, 0xc0, sizeof(params)); memset(&params, 0xc0, sizeof(params));
memset(vars, 0xc0, sizeof(vars)); memset(vars, 0xc0, sizeof(vars));
......
...@@ -504,7 +504,7 @@ static void test_StrFormatByteSize64A(void) ...@@ -504,7 +504,7 @@ static void test_StrFormatByteSize64A(void)
if (!pStrFormatByteSize64A) if (!pStrFormatByteSize64A)
{ {
skip("StrFormatByteSize64A() is not available. Tests skipped\n"); win_skip("StrFormatByteSize64A() is not available\n");
return; return;
} }
...@@ -528,7 +528,7 @@ static void test_StrFormatKBSizeW(void) ...@@ -528,7 +528,7 @@ static void test_StrFormatKBSizeW(void)
if (!pStrFormatKBSizeW) if (!pStrFormatKBSizeW)
{ {
skip("StrFormatKBSizeW() is not available. Tests skipped\n"); win_skip("StrFormatKBSizeW() is not available\n");
return; return;
} }
...@@ -550,7 +550,7 @@ static void test_StrFormatKBSizeA(void) ...@@ -550,7 +550,7 @@ static void test_StrFormatKBSizeA(void)
if (!pStrFormatKBSizeA) if (!pStrFormatKBSizeA)
{ {
skip("StrFormatKBSizeA() is not available. Tests skipped\n"); win_skip("StrFormatKBSizeA() is not available\n");
return; return;
} }
...@@ -596,7 +596,7 @@ static void test_StrCmpA(void) ...@@ -596,7 +596,7 @@ static void test_StrCmpA(void)
ok(!pStrIsIntlEqualA(TRUE, str1, str2, 5), "StrIsIntlEqualA(TRUE,...) isn't case-sensitive\n"); ok(!pStrIsIntlEqualA(TRUE, str1, str2, 5), "StrIsIntlEqualA(TRUE,...) isn't case-sensitive\n");
} }
else else
skip("StrIsIntlEqualA() is not available. Tests skipped\n"); win_skip("StrIsIntlEqualA() is not available\n");
if (pIntlStrEqWorkerA) if (pIntlStrEqWorkerA)
{ {
...@@ -604,7 +604,7 @@ static void test_StrCmpA(void) ...@@ -604,7 +604,7 @@ static void test_StrCmpA(void)
ok(!pIntlStrEqWorkerA(TRUE, str1, str2, 5), "pIntlStrEqWorkerA(TRUE,...) isn't case-sensitive\n"); ok(!pIntlStrEqWorkerA(TRUE, str1, str2, 5), "pIntlStrEqWorkerA(TRUE,...) isn't case-sensitive\n");
} }
else else
skip("IntlStrEqWorkerA() is not available. Tests skipped\n"); win_skip("IntlStrEqWorkerA() is not available\n");
} }
static void test_StrCmpW(void) static void test_StrCmpW(void)
...@@ -623,7 +623,7 @@ static void test_StrCmpW(void) ...@@ -623,7 +623,7 @@ static void test_StrCmpW(void)
ok(!pStrIsIntlEqualW(TRUE, str1, str2, 5), "StrIsIntlEqualW(TRUE,...) isn't case-sensitive\n"); ok(!pStrIsIntlEqualW(TRUE, str1, str2, 5), "StrIsIntlEqualW(TRUE,...) isn't case-sensitive\n");
} }
else else
skip("StrIsIntlEqualW() is not available. Tests skipped\n"); win_skip("StrIsIntlEqualW() is not available\n");
if (pIntlStrEqWorkerW) if (pIntlStrEqWorkerW)
{ {
...@@ -631,7 +631,7 @@ static void test_StrCmpW(void) ...@@ -631,7 +631,7 @@ static void test_StrCmpW(void)
ok(!pIntlStrEqWorkerW(TRUE, str1, str2, 5), "IntlStrEqWorkerW(TRUE,...) isn't case-sensitive\n"); ok(!pIntlStrEqWorkerW(TRUE, str1, str2, 5), "IntlStrEqWorkerW(TRUE,...) isn't case-sensitive\n");
} }
else else
skip("IntlStrEqWorkerW() is not available. Tests skipped\n"); win_skip("IntlStrEqWorkerW() is not available\n");
} }
static WCHAR *CoDupStrW(const char* src) static WCHAR *CoDupStrW(const char* src)
...@@ -652,7 +652,7 @@ static void test_StrRetToBSTR(void) ...@@ -652,7 +652,7 @@ static void test_StrRetToBSTR(void)
if (!pStrRetToBSTR) if (!pStrRetToBSTR)
{ {
skip("StrRetToBSTR() is not available. Tests skipped\n"); win_skip("StrRetToBSTR() is not available\n");
return; return;
} }
...@@ -690,7 +690,7 @@ static void test_StrCpyNXA(void) ...@@ -690,7 +690,7 @@ static void test_StrCpyNXA(void)
if (!pStrCpyNXA) if (!pStrCpyNXA)
{ {
skip("StrCpyNXA() is not available. Tests skipped\n"); win_skip("StrCpyNXA() is not available\n");
return; return;
} }
...@@ -711,7 +711,7 @@ static void test_StrCpyNXW(void) ...@@ -711,7 +711,7 @@ static void test_StrCpyNXW(void)
if (!pStrCpyNXW) if (!pStrCpyNXW)
{ {
skip("StrCpyNXW() is not available. Tests skipped\n"); win_skip("StrCpyNXW() is not available\n");
return; return;
} }
...@@ -768,7 +768,7 @@ static void test_SHAnsiToAnsi(void) ...@@ -768,7 +768,7 @@ static void test_SHAnsiToAnsi(void)
if (!pSHAnsiToAnsi) if (!pSHAnsiToAnsi)
{ {
skip("SHAnsiToAnsi() is not available. Tests skipped\n"); win_skip("SHAnsiToAnsi() is not available\n");
return; return;
} }
...@@ -789,7 +789,7 @@ static void test_SHUnicodeToUnicode(void) ...@@ -789,7 +789,7 @@ static void test_SHUnicodeToUnicode(void)
if (!pSHUnicodeToUnicode) if (!pSHUnicodeToUnicode)
{ {
skip("SHUnicodeToUnicode() is not available. Tests skipped\n"); win_skip("SHUnicodeToUnicode() is not available\n");
return; return;
} }
...@@ -829,7 +829,7 @@ static void test_StrXXX_overflows(void) ...@@ -829,7 +829,7 @@ static void test_StrXXX_overflows(void)
expect_eq(buf[100], '\xbf', CHAR, "%x"); expect_eq(buf[100], '\xbf', CHAR, "%x");
} }
else else
skip("StrCatBuffA() is not available. Tests skipped\n"); win_skip("StrCatBuffA() is not available\n");
memset(wbuf, 0xbf, sizeof(wbuf)); memset(wbuf, 0xbf, sizeof(wbuf));
expect_eq(StrCpyNW(wbuf, wstr1, 10), wbuf, PWCHAR, "%p"); expect_eq(StrCpyNW(wbuf, wstr1, 10), wbuf, PWCHAR, "%p");
...@@ -843,7 +843,7 @@ static void test_StrXXX_overflows(void) ...@@ -843,7 +843,7 @@ static void test_StrXXX_overflows(void)
expect_eq(wbuf[100], (WCHAR)0xbfbf, WCHAR, "%x"); expect_eq(wbuf[100], (WCHAR)0xbfbf, WCHAR, "%x");
} }
else else
skip("StrCatBuffW() is not available. Tests skipped\n"); win_skip("StrCatBuffW() is not available\n");
if (pStrRetToBufW) if (pStrRetToBufW)
{ {
...@@ -855,7 +855,7 @@ static void test_StrXXX_overflows(void) ...@@ -855,7 +855,7 @@ static void test_StrXXX_overflows(void)
expect_eq(wbuf[10], (WCHAR)0xbfbf, WCHAR, "%x"); expect_eq(wbuf[10], (WCHAR)0xbfbf, WCHAR, "%x");
} }
else else
skip("StrRetToBufW() is not available. Tests skipped\n"); win_skip("StrRetToBufW() is not available\n");
if (pStrRetToBufA) if (pStrRetToBufA)
{ {
...@@ -867,7 +867,7 @@ static void test_StrXXX_overflows(void) ...@@ -867,7 +867,7 @@ static void test_StrXXX_overflows(void)
expect_eq(buf[10], (CHAR)0xbf, CHAR, "%x"); expect_eq(buf[10], (CHAR)0xbf, CHAR, "%x");
} }
else else
skip("StrRetToBufA() is not available. Tests skipped\n"); win_skip("StrRetToBufA() is not available\n");
if (pwnsprintfA) if (pwnsprintfA)
{ {
...@@ -878,7 +878,7 @@ static void test_StrXXX_overflows(void) ...@@ -878,7 +878,7 @@ static void test_StrXXX_overflows(void)
expect_eq(buf[10], (CHAR)0xbf, CHAR, "%x"); expect_eq(buf[10], (CHAR)0xbf, CHAR, "%x");
} }
else else
skip("wnsprintfA() is not available. Tests skipped\n"); win_skip("wnsprintfA() is not available\n");
if (pwnsprintfW) if (pwnsprintfW)
{ {
...@@ -889,7 +889,7 @@ static void test_StrXXX_overflows(void) ...@@ -889,7 +889,7 @@ static void test_StrXXX_overflows(void)
expect_eq(wbuf[10], (WCHAR)0xbfbf, WCHAR, "%x"); expect_eq(wbuf[10], (WCHAR)0xbfbf, WCHAR, "%x");
} }
else else
skip("wnsprintfW() is not available. Tests skipped\n"); win_skip("wnsprintfW() is not available\n");
} }
START_TEST(string) START_TEST(string)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment