Author: gadamopoulos
Date: Thu Aug 16 08:43:43 2012
New Revision: 57085
URL:
http://svn.reactos.org/svn/reactos?rev=57085&view=rev
Log:
[user32_apitest]
- Deactivate Test_SimpleParameters in AttachThreadInput tests until it doesn't crash
in win32k.
- Add some more tests in Test_SimpleParameters that should bring win32k to its limits
Modified:
trunk/rostests/apitests/user32/AttachThreadInput.c
Modified: trunk/rostests/apitests/user32/AttachThreadInput.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/AttachThr…
==============================================================================
--- trunk/rostests/apitests/user32/AttachThreadInput.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/AttachThreadInput.c [iso-8859-1] Thu Aug 16 08:43:43
2012
@@ -328,6 +328,29 @@
ret = AttachThreadInput( data[1].tid, data[2].tid, FALSE);
ok(ret==1, "expected AttachThreadInput to succeed\n");
}
+
+ /* test detaching in thread cleanup */
+ {
+ ret = AttachThreadInput( data[0].tid, data[1].tid, TRUE);
+ ok(ret==1, "expected AttachThreadInput to succeed\n");
+ ret = AttachThreadInput( data[0].tid, data[1].tid, TRUE);
+ ok(ret==1, "expected AttachThreadInput to succeed\n");
+ ret = AttachThreadInput( data[1].tid, data[2].tid, TRUE);
+ ok(ret==1, "expected AttachThreadInput to succeed\n");
+ ret = AttachThreadInput( data[1].tid, data[2].tid, TRUE);
+ ok(ret==1, "expected AttachThreadInput to succeed\n");
+
+ TerminateThread(data[1].hThread, 0);
+
+ ret = AttachThreadInput( data[0].tid, data[1].tid, FALSE);
+ ok(ret==0, "expected AttachThreadInput to fail\n");
+ ret = AttachThreadInput( data[1].tid, data[2].tid, FALSE);
+ ok(ret==0, "expected AttachThreadInput to fail\n");
+
+ /* Create Thread1 again */
+ CreateTestThread(1, NULL);
+ }
+
}
void Test_Focus() //Focus Active Capture Foreground Capture
@@ -634,8 +657,9 @@
if(!InitThreads())
return;
- Test_SimpleParameters();
- cleanup_attachments();
+ win_skip("skip Test_SimpleParameters that crash ros\n");
+ //Test_SimpleParameters();
+ //cleanup_attachments();
Test_Focus();
cleanup_attachments();
Test_UnaffectedMessages();