[advpack 2/2] Add another test

Paul Vriens paul.vriens.wine at gmail.com
Tue Oct 31 11:36:50 CST 2006


Hi,

should be (if at all) applied after the previous one "Fix typo's".

This is more or less the original test and it shows we do something wrong
here. That fact that the CAB file doesn't exist makes sure the test.inf can not
be found. This leads to both a pop-up on windows (actually the second one for
this test) and the E_INVALIDARG response.

Changelog
  Add another test

Cheers,

Paul.
---
 dlls/advpack/tests/install.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c
index f589a0d..96c09a3 100644
--- a/dlls/advpack/tests/install.c
+++ b/dlls/advpack/tests/install.c
@@ -233,13 +233,19 @@ static void test_LaunchINFSectionEx()
 
     create_inf_file("test.inf");
 
-    /* try an invalid CAB filename */
+    /* try an invalid CAB filename with an absolute INF name */
     lstrcpy(cmdline, CURR_DIR);
     lstrcat(cmdline, "\\");
     lstrcat(cmdline, "test.inf,DefaultInstall,c:imacab.cab,4");
     hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0);
     ok(hr == 0, "Expected 0, got %d\n", hr);
 
+    /* try an invalid CAB filename with a relative INF name */
+    lstrcpy(cmdline, "test.inf,DefaultInstall,c:imacab.cab,4");
+    hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0);
+    todo_wine
+        ok(hr == E_INVALIDARG, "Expected E_INVALIDARG, got %d\n", hr);
+
     DeleteFileA("test.inf");
 }
 
-- 
1.4.3.3




More information about the wine-patches mailing list