Piotr Caban (@piotr) commented about dlls/msvcr80/tests/msvcr80.c:
+#define expect_eq(expr, value, type, format) { type ret = (expr); ok((value) == ret, #expr " expected " format " got " format "\n", value, ret); } +#define expect_bin(buf, value, len) { ok(memcmp((buf), value, len) == 0, "Binary buffer mismatch - expected %s, got %s\n", buf_to_string((unsigned char *)value, len, 1), buf_to_string((buf), len, 0)); }
+static void test__mbsncpy_s(void) +{
- unsigned char *mbstring = (unsigned char *)"\xb0\xb1\xb2\xb3Q\xb4\xb5\x0";
- unsigned char *mbstring2 = (unsigned char *)"\xb0\x0";
- unsigned char buf[16];
- errno_t err;
- int oldcp;
- oldcp = p__getmbcp();
- if (p__setmbcp(936))
- {
skip("Code page 936 is not available, skipping test.\n");
```suggestion:-0+0 win_skip("Code page 936 is not available, skipping test.\n"); ```