Vijay Kiran Kamuju wrote:
I am planning to write some tests for IXMLDOMNode. I need your help on how to write tests in the wine test framework and test on the windows framework.
I started a simple test case in dlls/msxml3/tests/domdoc.c. I modify it a little bit to get it to compile under MSVC 6.0. I've attached the diff from the version that compiles on Windows.
Mike
--- /home/mike/testprogs/xmltest/xmltest.c 2005-08-11 13:10:52.000000000 +0900 +++ /home/mike/wine/dlls/msxml3/tests/domdoc.c 2005-08-12 20:25:05.000000000 +0900 @@ -27,8 +27,7 @@ #include "xmldom.h" #include <stdio.h> -//#include "wine/test.h" -#define ok(cond,str) do{ if(!(cond)) fprintf(stderr,"line %d: %s",__LINE__,str); }while (0) +#include "wine/test.h" void test_domdoc( void ) { @@ -80,7 +79,7 @@ void test_domdoc( void ) r = CoCreateInstance( &CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER, &IID_IXMLDOMDocument, (LPVOID*)&doc ); - ok( r == S_OK, "failed to create an xml dom doc\n" ); + /* ok( r == S_OK, "failed to create an xml dom doc\n" ); */ if( r != S_OK ) return; @@ -199,8 +198,7 @@ void test_domdoc( void ) ok( r == S_OK, "failed to uninit com\n"); } -//START_TEST(domdoc) -main(int argc, char **argv) +START_TEST(domdoc) { test_domdoc(); }