"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/msvcrt/tests/string.c" between
wine-6.0.tar.xz and wine-6.0.1.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs.

string.c  (wine-6.0.tar.xz):string.c  (wine-6.0.1.tar.xz)
skipping to change at line 2096 skipping to change at line 2096
ok(ret == 2, "wcstombs did not return 2\n"); ok(ret == 2, "wcstombs did not return 2\n");
ok(!memcmp(mOut, mSimple, 5*sizeof(char)), "mOut = %s\n", mOut); ok(!memcmp(mOut, mSimple, 5*sizeof(char)), "mOut = %s\n", mOut);
ret = wcstombs(NULL, L"", 1); ret = wcstombs(NULL, L"", 1);
ok(ret == 0, "wcstombs did not return 0, got %d\n", (int)ret); ok(ret == 0, "wcstombs did not return 0, got %d\n", (int)ret);
ret = wcstombs(mOut, L"", 1); ret = wcstombs(mOut, L"", 1);
ok(ret == 0, "wcstombs did not return 0, got %d\n", (int)ret); ok(ret == 0, "wcstombs did not return 0, got %d\n", (int)ret);
ok(!mOut[0], "mOut = %s\n", mOut); ok(!mOut[0], "mOut = %s\n", mOut);
if(pwcsrtombs) {
pwstr = wSimple;
err = -3;
ret = pwcsrtombs(mOut, &pwstr, 4, &err);
ok(ret == 4, "wcsrtombs did not return 4\n");
ok(err == 0, "err = %d\n", err);
ok(pwstr == wSimple+4, "pwstr = %p (wszSimple = %p)\n", pwstr, wSimple);
ok(!memcmp(mOut, mSimple, ret), "mOut = %s\n", mOut);
pwstr = wSimple;
ret = pwcsrtombs(mOut, &pwstr, 5, NULL);
ok(ret == 4, "wcsrtombs did not return 4\n");
ok(pwstr == NULL, "pwstr != NULL\n");
ok(!memcmp(mOut, mSimple, sizeof(mSimple)), "mOut = %s\n", mOut);
}
if(!setlocale(LC_ALL, "Japanese_Japan.932")) { if(!setlocale(LC_ALL, "Japanese_Japan.932")) {
win_skip("Japanese_Japan.932 locale not available\n"); win_skip("Japanese_Japan.932 locale not available\n");
return; return;
} }
ret = mbstowcs(wOut, mHiragana, 6); ret = mbstowcs(wOut, mHiragana, 6);
ok(ret == 2, "mbstowcs did not return 2\n"); ok(ret == 2, "mbstowcs did not return 2\n");
ok(!memcmp(wOut, wHiragana, sizeof(wHiragana)), "wOut = %s\n", wine_dbgstr_w (wOut)); ok(!memcmp(wOut, wHiragana, sizeof(wHiragana)), "wOut = %s\n", wine_dbgstr_w (wOut));
ret = mbstowcs(wOut, "", 6); ret = mbstowcs(wOut, "", 6);
 End of changes. 1 change blocks. 
0 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)