From 1e9d40e6019082a16b4c1b5a9feb4898618bf331 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 16 May 2017 17:57:59 +0200 Subject: [PATCH] user32: Test clipboard sequence number for synthesized data. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/user32/tests/clipboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c index 02cd7b361ec..367d3378db2 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -597,7 +597,7 @@ static void test_synthesized(void) HGLOBAL h, htext; HENHMETAFILE emf; BOOL r; - UINT cf, i, j, count, rendered; + UINT cf, i, j, count, rendered, seq, old_seq; HANDLE data; HWND hwnd; @@ -762,10 +762,14 @@ static void test_synthesized(void) ok(cf == tests[i].expected[j], "%u.%u: got %04x instead of %04x\n", i, j, cf, tests[i].expected[j] ); if (cf != tests[i].expected[j]) break; + old_seq = GetClipboardSequenceNumber(); data = GetClipboardData( cf ); ok(data != NULL || broken( tests[i].format == CF_DIBV5 && cf == CF_DIB ), /* >= Vista */ "%u: couldn't get data, cf %04x err %d\n", i, cf, GetLastError()); + seq = GetClipboardSequenceNumber(); + todo_wine_if(cf != tests[i].format && cf != CF_LOCALE) + ok(seq == old_seq, "sequence changed (test %d %d)\n", i, cf); switch (cf) { case CF_LOCALE: