On Win9x "hi\n" gives us "hi\r\n".
This commit is contained in:
parent
a5246c68c3
commit
979770b1ca
|
@ -195,8 +195,8 @@ void test_message_from_string(void)
|
||||||
/* line feed */
|
/* line feed */
|
||||||
r = doit(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_MAX_WIDTH_MASK, "hi\n", 0,
|
r = doit(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_MAX_WIDTH_MASK, "hi\n", 0,
|
||||||
0, out, sizeof out/sizeof (CHAR));
|
0, out, sizeof out/sizeof (CHAR));
|
||||||
ok(!strcmp("hi ", out),"failed out=[%s]",out);
|
ok(!strcmp("hi ", out) || !strcmp("hi\r\n", out),"failed out=[%s]",out);
|
||||||
ok(r==3,"failed: r=%ld",r);
|
ok(r==3 || r==4,"failed: r=%ld",r);
|
||||||
|
|
||||||
/* carriage return line feed */
|
/* carriage return line feed */
|
||||||
r = doit(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_MAX_WIDTH_MASK, "hi\r\n", 0,
|
r = doit(FORMAT_MESSAGE_FROM_STRING | FORMAT_MESSAGE_MAX_WIDTH_MASK, "hi\r\n", 0,
|
||||||
|
|
Loading…
Reference in New Issue