Commit Graph

324 Commits

Author SHA1 Message Date
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Stefan Leichter adbc691d20 setupapi/tests: Test signature $Windows NT$ in SetupDiGetINFClassA too. 2013-12-18 11:33:31 +01:00
Nikolay Sivov 9d03aa328f setupapi/tests: Enable compilation with -D__WINESRC__. 2013-10-29 20:07:07 +01:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Michael Stefaniuc 09524be583 setupapi: Avoid using CONST. 2013-09-23 11:54:55 +02:00
Francois Gouget ce64b90c97 setupapi/tests: Remove a pointless use of assert(). 2013-07-03 21:20:03 +02:00
Hans Leidekker da922769c5 setupapi: SetupInstallServicesFromInfSection doesn't fail if there are no AddService or DelService directives in the section. 2012-07-09 15:06:26 -04:00
Francois Gouget 3de330db54 tests: Remove unneeded assert.h includes. 2011-09-27 10:59:56 +02:00
Christian Inci 309914f315 setupapi: Fix return behaviour when the device key doesn't exist. 2011-07-09 11:48:06 +02:00
Juan Lang 4fe8cc6164 setupapi: Make sure machine name is non-empty before failing. 2011-06-10 10:44:12 +02:00
Austin English 270298191d setupapi/tests: Remove win9x hacks. 2011-03-01 13:21:58 +01:00
André Hentschel c7cb92f1f2 setupapi/tests: Don't test function directly when reporting GetLastError(). 2010-12-30 14:59:57 +01:00
Greg Geldorp f6990085cc setupapi/tests: Uninstall .pnf if uninstall of .inf failed. 2010-12-29 12:03:48 +01:00
André Hentschel 57aa778e2d setupapi/tests: Don't test function directly when reporting GetLastError(). 2010-12-27 15:39:37 +01:00
André Hentschel 424fa9a7f3 setupapi/tests: Better clean up if SetupUninstallOEMInf fails. 2010-12-27 15:39:37 +01:00
André Hentschel 9c02760647 setupapi/tests: Fix wow64 failures. 2010-10-13 11:31:26 +02:00
Stefan Leichter 05a1416c93 setupapi: Implement SetupDiGetINFClassA on top of SetupDiGetINFClassW. 2010-10-05 13:04:26 +02:00
Alexandre Julliard 5c4c6544ae setupapi/tests: Make some variables static. 2010-10-01 13:37:28 +02:00
Stefan Leichter 637fd3735a setupapi: Added more tests for SetupDiGetINFClassA. 2010-09-30 11:15:49 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Stefan Leichter 7e8ab4c8b4 setupapi: Added tests for SetupDiGetINFClassA. 2010-09-14 13:31:46 -05:00
Andrew Nguyen 3eb4985231 setupapi: Implement SetupDuplicateDiskSpaceListA/W. 2010-09-07 16:00:42 +02:00
Andrew Nguyen beb3018bd5 setupapi: Improve parameter validation in SetupQuerySpaceRequiredOnDriveA/W. 2010-09-07 16:00:30 +02:00
Andrew Nguyen 188ed272dc setupapi: Improve parameter validation for SetupCreateDiskSpaceListA/W. 2010-09-07 15:58:20 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Austin English f7f38c5def setupapi/tests: Remove unused variable. 2010-07-21 13:23:59 +02:00
Andrew Nguyen a44506b563 setupapi: Only extract the first MSZIP cabinet file in SetupDecompressOrExtractFile. 2010-06-16 20:13:12 +02:00
Andrew Nguyen 53a563bb38 setupapi: Exhaustively test the invalid parameter handling of SetupDecompressOrCopyFileA. 2010-06-16 20:13:04 +02:00
Andrew Nguyen 813024d492 setupapi/tests: Add simple enumeration tests for SetupIterateCabinetW. 2010-06-16 20:13:02 +02:00
Andrew Nguyen d0e93cd3ab setupapi/tests: Add simple enumeration tests for SetupIterateCabinetA. 2010-06-16 20:13:00 +02:00
Andrew Nguyen abf63710da setupapi/tests: Add tests to show that SetupIterateCabinet handles callback exceptions on newer Windows. 2010-06-16 20:12:58 +02:00
Andrew Nguyen debe525f3f setupapi: Validate the cabinet filename parameter in SetupIterateCabinetW. 2010-06-16 20:12:54 +02:00
Andrew Nguyen bc21be89ab setupapi: Validate the cabinet filename parameter in SetupIterateCabinetA. 2010-06-16 20:12:09 +02:00
Stefan Leichter 05a308a80b setupapi: Implement SetupGetInfFileListA. 2010-04-06 11:48:21 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Stefan Leichter 9db754fe10 setupapi: Implement SetupGetInfFileListW. 2009-12-14 16:14:37 +01:00
Hans Leidekker 3bf156a8c5 setupapi/tests: Fix a memory leak.
Found by Valgrind.
2009-12-08 12:37:14 +01:00
Stefan Leichter 6f8fb2f4e7 setupapi32/tests: More tests for SetupGetInfFileListW. 2009-12-08 12:37:01 +01:00
Stefan Leichter 941d69e544 setupapi/tests: Use separate directory for SetupGetInfFileListW. 2009-12-03 10:15:06 +01:00
Stefan Leichter 7f2943e712 setupapi/tests: Check the buffer content returned from SetupGetInfFileListW test. 2009-11-16 11:54:45 +01:00
Paul Vriens f4a5294c89 setupapi/tests: Fix some test failures on Win9x/WinMe. 2009-11-12 13:08:25 +01:00
Stefan Leichter 381221de66 setupapi: Add stub and some tests for SetupGetInfFileListW. 2009-11-11 10:53:39 +01:00
Paul Vriens 61abc0a51d setupapi/tests: Fix some test failures on Win98. 2009-10-09 11:50:29 +02:00
Alexandre Julliard f901f63bc6 setupapi/tests: Fix the SetupGetIntField test to load the correct key. 2009-10-08 21:50:09 +02:00
Paul Vriens bf0ffb2d3e setupapi/tests: Cleanup after SetupCopyOEMInf() tests. 2009-10-07 15:57:29 +02:00
Paul Vriens da07b0d585 setupapi/tests: Don't crash on WinMe. 2009-10-02 11:51:48 +02:00
Ge van Geldorp 5448bf3e36 setupapi/tests: Add acceptable error code for Win7. 2009-09-28 14:30:32 +02:00
Paul Vriens de945384a4 setupapi/tests: pSetupGetField returns A or W string depending on OS. 2009-06-08 16:22:46 +02:00
Paul Vriens 77fa32a832 setupapi: Fix passing a NULL parameter (Coverity). 2009-05-18 14:31:06 +02:00
Paul Vriens 644f57679b setupapi/tests: Fix remaining failures on Win9x. 2009-05-15 14:19:05 +02:00
Paul Vriens 97505798ec setupapi/tests: Fix a test failure on Win98. 2009-04-24 15:02:50 +02:00
Francois Gouget 96848a0605 Remove spaces before '\n's. 2009-03-09 12:05:58 +01:00
Francois Gouget 292a10424d setupapi/tests: Use win_skip() to skip over unimplemented functionality. 2009-02-23 12:21:24 +01:00
Alexandre Julliard 486e66ed6e setupapi/tests: Don't compare the drive letter of expanded file paths. 2009-02-03 22:23:35 +01:00
Alasdair Sinclair 3fc0414896 setupapi/tests: Fix missing void in empty parameter list. 2009-01-30 11:43:36 +01:00
Ge van Geldorp 115805f12e setupapi/tests: Make tests pass on Vista and W2K8. 2009-01-26 16:07:44 +01:00
Paul Vriens b8cde623dd setupapi/tests: Fix some test failures on win9x. 2009-01-14 14:52:51 +01:00
Hans Leidekker d92e738f4a setupapi: Fix resolving target path when given a section. Default to the system directory. 2009-01-13 17:33:08 +01:00
Hans Leidekker b0f2bebc4c setupapi: Enable reuse of create_inf_file in tests. 2009-01-13 15:37:06 +01:00
Alexandre Julliard e1a4d068d1 setupapi/tests: Pass the correct size to SetupDiGetDeviceInterfaceDetailA. 2009-01-10 14:49:46 +01:00
Alexandre Julliard a2cf243776 include: Fix packing of the setupapi structures. 2009-01-09 14:06:14 +01:00
Francois Gouget 916d6a4450 setupapi: Fix the StringTableLookUpStringEx() prototype. 2009-01-09 14:06:13 +01:00
Hans Leidekker 601870a435 setupapi: Add some tests for StringTableLookUpStringEx. Make them pass. 2009-01-07 14:41:38 +01:00
Paul Vriens c89617e067 setupapi/tests: Skip some tests if we don't have enough rights. 2009-01-07 13:23:56 +01:00
Hans Leidekker b4dcc6b42a setupapi: Add tests for StringTableAddStringEx and StringTableLookupStringEx. 2009-01-06 14:37:44 +01:00
Hans Leidekker f820392fbf setupapi: Have each test create and destroy its own string table. 2009-01-06 14:37:33 +01:00
Alexandre Julliard 2e20bd4960 setupapi/tests: Added some tests for SetupEnumInfSectionsA/W. 2009-01-05 20:27:06 +01:00
Paul Vriens 6c72061507 setupapi/tests: Fix a test failure on Vista (and skip some tests). 2008-12-17 15:30:23 +01:00
Francois Gouget 8c8c0f7146 setupapi/tests: Make devinst_RegDeleteTreeW() static. 2008-12-15 12:25:25 +01:00
Paul Vriens e755a96fc8 setupapi/tests: Fix a test failure on Vista/W2K8. 2008-12-11 11:50:22 +01:00
Michael Stefaniuc 02d1154bab setupapi: Remove some superfluous casts. 2008-12-08 12:04:25 +01:00
Vincent Povirk 022a8439e0 setupapi/tests: Fix string format warnings. 2008-12-05 12:30:18 +01:00
Vincent Povirk b7fe5e0aa5 setupapi: Implement FLG_PROFITEM_GROUP. 2008-11-24 15:07:11 +01:00
Paul Vriens 10fcf6285e setupapi/tests: Don't use hardcoded C: for the system drive. 2008-11-14 11:02:15 +01:00
Paul Vriens a76d83687a setupapi/tests: Fix some failures on Win9x and WinMe. 2008-11-12 11:49:11 +01:00
Vincent Povirk 6c380468d9 setupapi: Implement ProfileItems directive. 2008-11-05 15:55:09 +01:00
Vincent Povirk 35d0a7a051 setupapi/tests: Add test for ProfileItems directive. 2008-11-05 15:50:08 +01:00
Paul Vriens 51763a10e4 setupapi/tests: Fix a failure on win98. 2008-10-21 11:43:25 +02:00
Paul Vriens c79759786d setupapi/tests: Fix a failure on Windows 2000. 2008-09-12 11:39:41 +02:00
Paul Vriens c55f088198 setupapi/tests: Fix two failures on win98. 2008-09-12 11:39:31 +02:00
James Hawkins e05b1d0aab setupapi: Remove a test of an undocumented function that is inconsistent across platforms. 2008-09-11 11:56:19 +02:00
James Hawkins 9b96881163 setupapi: Fix a failing test in Vista. 2008-09-11 11:50:42 +02:00
Reece Dunn 960ae6fedb setupapi/tests: Use FIELD_OFFSET instead of offsetof. 2008-07-22 13:09:20 +02:00
Hans Leidekker da5e4f16d8 setupapi: Fix two memory leaks in the test. 2008-07-21 12:21:20 +02:00
Detlef Riekenberg 775d4ebdcd setupapi/tests: Avoid a crash on Win9x. 2008-07-11 14:22:25 +02:00
James Hawkins c0e89107c5 setupapi: Fix a test that is failing in multiple platforms. 2008-07-01 13:45:38 +02:00
Paul Vriens 68a3ed219e setupapi/tests: Add a simple test for the DelReg directive. 2008-06-24 11:46:50 +02:00
Paul Vriens 4fe5683ce4 setupapi/tests: Fix a test on NT4. 2008-06-23 19:46:29 +02:00
Paul Vriens 0b773df85f setupapi/tests: Remove a registry key on failure for NT4. 2008-06-23 19:46:29 +02:00
Paul Vriens f544b039cf setupapi/tests: Prevent crash on NT4. 2008-06-23 19:46:29 +02:00
Paul Vriens 7e7574d2a8 setupapi/tests: Remove last win9x references. 2008-06-23 19:46:29 +02:00
Paul Vriens 46e0219f7a setupapi/tests: Remove win9x specifics from testInstallClass. 2008-06-23 12:51:35 +02:00
Paul Vriens d2ee399c66 setupapi/tests: Remove win9x specifics from testCreateDeviceInfo. 2008-06-23 12:51:29 +02:00
Paul Vriens 6546cd5db2 setupapi/tests: Remove some function pointer checks from testRegisterDeviceInfo. 2008-06-21 11:14:52 +02:00
Paul Vriens 44499b5b0b setupapi/tests: Remove win9x specifics from testDevRegKey. 2008-06-21 11:14:43 +02:00
Paul Vriens 50d6b08353 setupapi/tests: Remove win9x specifics from testDeviceRegistryPropertyW. 2008-06-21 11:14:35 +02:00
Paul Vriens 0fbe23c13d setupapi/tests: Skip all tests on Win9x and WinMe. 2008-06-21 11:14:27 +02:00
Paul Vriens 5f2de1f61f setupapi/tests: Fix some typos. 2008-06-19 11:55:08 +02:00
Paul Vriens 5cd4cbc49c setupapi/tests: Fix some test failures on W2K. 2008-06-11 20:02:06 +02:00
Paul Vriens e63f4fcfbc setupapi/tests: Fix two more tests on Windows 2000. 2008-06-09 16:55:50 +02:00
Paul Vriens 02b05393c8 setupapi/tests: Fix a test on Windows 2000. 2008-06-09 16:55:42 +02:00
Paul Vriens 1567813361 setupapi/tests: Fix test for win9x and Vista. 2008-06-09 12:37:19 +02:00
Paul Vriens 057c92db54 setupapi/tests: Remove leftovers from old tests. 2008-05-28 19:34:38 +02:00
Paul Vriens b58cab405a setupapi/tests: Test to show cleanup should not be needed. 2008-05-27 19:35:08 +02:00
Paul Vriens 3758205546 setupapi/tests: Add another test. 2008-05-27 19:35:04 +02:00
Paul Vriens 8253824669 setupapi/tests: Cleanup after testCreateDeviceInterface. 2008-05-27 12:42:55 +02:00
Paul Vriens 156dad05c0 setupapi/tests: Test registry after testDeviceRegistryProperty. 2008-05-26 19:49:42 +02:00
Paul Vriens 3573b90bdc setupapi/tests: Cleanup after testGetDeviceInterfaceDetail. 2008-05-26 19:49:35 +02:00
Paul Vriens 7609581cf5 setupapi/tests: Cleanup after testRegisterAndGetDetail. 2008-05-26 19:49:18 +02:00
Paul Vriens 82fcb7a5c3 setupapi/tests: Cleanup after testDevRegKey. 2008-05-26 19:49:06 +02:00
Paul Vriens 2b27d9baed setupapi/tests: Skip tests on win9x. 2008-05-26 19:48:44 +02:00
Paul Vriens d9b673f91a setupapi/tests: Turn guid into a global variable. 2008-05-26 19:48:38 +02:00
Paul Vriens b1b4063c0b setupapi/tests: Fix a test on NT4. 2008-05-26 19:48:32 +02:00
Paul Vriens ee975a5611 setupapi/tests: Close registry key after use. 2008-05-26 19:48:25 +02:00
Paul Vriens ed552b474c setupapi/tests: Fix typos. 2008-05-21 20:15:13 +02:00
Paul Vriens fb18592c93 setupapi/tests: Fix typo. 2008-05-21 20:15:02 +02:00
Paul Vriens bece26be54 setupapi/tests: Skip some tests if we are on win9x. 2008-05-21 17:16:20 +02:00
Paul Vriens 59b6506439 setupapi/tests: Remove a duplicate function call. 2008-05-21 17:16:11 +02:00
James Hawkins 5a701ab6b4 setupapi: Fix a few test failures in win2k3. 2008-05-21 11:37:06 +02:00
Paul Vriens ed67a1f350 setupapi/tests: Clean up properly on win9x. 2008-05-05 12:53:24 +02:00
Paul Vriens d6f9de67b8 setupapi/tests: Skip some tests on win9x. 2008-05-05 12:53:19 +02:00
Austin English aab8fae59a Spelling fixes. 2008-04-21 14:25:05 +02:00
Alexander Morozov af5e168f16 setupapi: SetupDiGetDeviceRegistryProperty should return ERROR_INVALID_DATA when buffer size is not 0 but buffer is NULL. 2008-04-17 20:21:48 +02:00
Alexander Morozov 85861a4999 setupapi: SetupDiGetDeviceRegistryProperty should return ERROR_INSUFFICIENT_BUFFER when buffer size is insufficient. 2008-04-17 20:21:38 +02:00
Alexander Morozov 68f12e32a8 setupapi: Add a test for SetupDiGetDeviceRegistryProperty and SetupDiSetDeviceRegistryProperty. 2008-04-17 20:21:26 +02:00
Alexandre Julliard c7e661b8e5 setupapi: Install services in InstallHinfSection. 2008-04-16 12:36:18 +02:00
Alexandre Julliard cf78e6c38c setupapi: Implemented SetupInstallServicesFromInfSectionW. 2008-04-16 12:36:08 +02:00
Paul Vriens c535a27670 setupapi/tests: No need to use GetProcAddress as all functions exist on all platforms. 2008-04-02 19:54:31 +02:00
Alexander Morozov 997bea9b89 setupapi: Create DeviceInstance value in registry, delete todo_wine from test. 2008-04-02 13:44:08 +02:00
Alexander Morozov c4fb0f236e setupapi: Added a test for registering device interface and getting device path. 2008-04-02 13:39:06 +02:00
Paul Vriens ebec0a9697 setupapi: Fix for SetupGetIntField, with tests. 2008-04-01 13:15:56 +02:00
Paul Vriens a3557272f4 setupapi: Fix some last errors for SetupGetLineByIndex. 2008-03-28 21:42:15 +01:00
Paul Vriens 50e81d0e6d setupapi: Fix some last errors for SetupFindFirstLine. 2008-03-28 21:42:15 +01:00
Paul Vriens dacb11533d setupapi/tests: Remove check as we don't care how 'field' is allocated. 2008-03-28 14:53:29 +01:00
Paul Vriens 026b252b44 setupapi/tests: Add a few tests for SetupInstallServicesFromInfSectionA. 2008-03-28 14:51:43 +01:00
Paul Vriens ea64ac8ab7 setupapi/tests: Run tests on win9x again. 2008-03-28 14:51:38 +01:00
Christopher Berner 6bc8e9a116 setupapi: Fix buffer size in SetupDiGetDeviceInterfaceDetailW. 2008-03-27 19:37:12 +01:00
Paul Vriens 18e305241d setupapi/tests: Add some tests for the last error returned. 2008-03-27 17:47:23 +01:00
Alexandre Julliard 39fea9329c setupapi/tests: Use FIELD_OFFSET instead of offsetof. 2008-03-24 21:06:15 +01:00
Paul Vriens ee08320d50 setupapi/tests: Add a test for installing a driver service via an INF file. 2008-03-21 11:21:56 +01:00
Paul Vriens 433ca7d8bd setupapi/devinst: Struct size passed needs to be exact. 2008-02-25 20:42:32 +01:00
Rob Shearman 55aeb80aa3 setupapi: Make the setupapi tests load on systems < Vista by providing a private implementation of RegDeleteTreeW. 2007-11-02 12:37:32 +01:00
Juan Lang 629123bae4 setupapi: Implement SetupDiOpenDevRegKey. 2007-10-15 12:09:11 +02:00
Juan Lang 559f89afd2 setupapi: Test SetupDiOpenDevRegKey. 2007-10-15 12:05:28 +02:00
Juan Lang 8cacf12fe5 setupapi: Improve parameter checking in SetupDiInstallClass. 2007-10-15 12:05:22 +02:00
Juan Lang f2c85adbc3 setupapi: Remove bogus part of test. 2007-10-15 12:05:15 +02:00
Juan Lang caae01f8be setupapi: Test SetupDiInstallClass. 2007-10-12 11:04:25 +02:00
Juan Lang df3cb0630d setupapi: Create symbolic link value when interface is created. 2007-09-24 14:16:04 +02:00
Juan Lang d34ec8b8a1 setupapi: Add test showing value of path. 2007-09-24 14:15:32 +02:00