On 13/11/12 18:49, Ludovic Rousseau wrote: > I would use a test/ directory for programs used for tests (stress test > in this case). > These stress test programs should NOT be used as example by our users. > We should try to avoid possible confusion where we can. > > It can be the beginning of a more complete test suite :-) >
I decided to go for a test directory as it turned into more than one file. The current work in progress is on my (badly named) testing branch: https://github.com/tobygray/libusbx/tree/testing It still needs some sort of test assert macro/function to clean up the test code. I think I'll have to make use of setjmp and longjmp to get this to work nicely though, so I was avoiding doing it for now. I've also only added it to the Visual Studio 2005 build as I don't have a copy of VC6 or VC2008 to test changes. Currently test_stress.many_device_lists fails on Windows (as expected). test_stress.default_context_change crashes on both Linux and Windows, I've not yet looked into it in enough detail to see what the issue is, but I think it's something to do with how the reference count works for the default context. Does anyone have any comments on my approach or suggestions? Regards, Toby ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel