Module: wine Branch: master Commit: ce64b90c97a53c3cb5ee2249a7eef2a66ccbc25d URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce64b90c97a53c3cb5ee2249a7...
Author: Francois Gouget fgouget@free.fr Date: Wed Jul 3 12:14:14 2013 +0200
setupapi/tests: Remove a pointless use of assert().
---
dlls/setupapi/tests/parser.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/setupapi/tests/parser.c b/dlls/setupapi/tests/parser.c index 53f7cc0..5a99423 100644 --- a/dlls/setupapi/tests/parser.c +++ b/dlls/setupapi/tests/parser.c @@ -18,7 +18,6 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
-#include <assert.h> #include <stdarg.h>
#include "windef.h" @@ -424,7 +423,12 @@ static void test_key_names(void) if (hinf == INVALID_HANDLE_VALUE) continue;
ret = SetupFindFirstLineA( hinf, "Test", 0, &context ); - assert( ret ); + ok(ret, "SetupFindFirstLineA failed: le=%u\n", GetLastError()); + if (!ret) + { + SetupCloseInfFile( hinf ); + continue; + }
check_key( &context, key_names[i].key );