Huw Davies : comdlg32/tests: Vista can return a failure from StartDoc when using the XPS driver - don' t fail the test in this case.

Alexandre Julliard julliard at winehq.org
Thu Feb 19 09:18:45 CST 2009


Module: wine
Branch: master
Commit: 466b50cf7d242c68f9d5d86c5de063485c04923e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=466b50cf7d242c68f9d5d86c5de063485c04923e

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Feb 19 12:50:45 2009 +0000

comdlg32/tests: Vista can return a failure from StartDoc when using the XPS driver - don't fail the test in this case.

---

 dlls/comdlg32/tests/printdlg.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c
index 6f70621..c305016 100644
--- a/dlls/comdlg32/tests/printdlg.c
+++ b/dlls/comdlg32/tests/printdlg.c
@@ -335,7 +335,11 @@ static void test_abort_proc(void)
     doc_info.lpszOutput = filename;
 
     job_id = StartDocA(print_dc, &doc_info);
-    ok(job_id > 0, "StartDocA failed ret %d gle %d\n", job_id, GetLastError());
+
+    ok(job_id > 0 ||
+       GetLastError() == ERROR_SPL_NO_STARTDOC, /* Vista can fail with this error when using the XPS driver */
+       "StartDocA failed ret %d gle %d\n", job_id, GetLastError());
+
     if(job_id <= 0)
     {
         skip("StartDoc failed\n");




More information about the wine-cvs mailing list