[PATCH try2 1/3] setupapi/tests: Add rudimentary tests for InstallHinfSectionA/W.

Misha Koshelev mk144210 at bcm.edu
Mon Jun 11 23:29:15 CDT 2007


Changes from previous version in patch 1:
* Comments to explain why this conformance test cannot be quite standard - see Notes comment @ beginning
* Try A function first - I decided that since the A function works on Win98 but not WinXP it is the one
  "broken" (reminder: W works on XP but not 98)
* Added asserts in helper _InstallHinfSection function to verify A/W function pointers to make sure that
  in the future useW is not misassigned (currently it is assigned properly in START_TEST(install) section as
  it was in previous version).
* Changed test_install to ok_install to make its purpose more clear. Specifically, the idea is that 
  ok_install does the actual install and checks that everything is installed properly, whereas 
  test_InstallHinfSection allows us to try using the _InstallHinfSection functions (through ok_install) in
  various ways to test effects of parameters on the installation (e.g., see patch 2)
* Use property of the "stub" functions of not changing last error to determine which function is stub instead
  of using registry checks

Hopefully this patchset is clearer.

---
 dlls/setupapi/tests/Makefile.in |    1 +
 dlls/setupapi/tests/install.c   |  180 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 181 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: e76cfe846ef89eeeaeb4e0794e8133b93764b3a1.diff
Type: text/x-patch
Size: 7304 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070611/4f74eec4/e76cfe846ef89eeeaeb4e0794e8133b93764b3a1-0001.bin


More information about the wine-patches mailing list