summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/xmlpatterns/tst_xmlpatterns.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
index 8db61b9..e2f7337 100644
--- a/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
+++ b/tests/auto/xmlpatterns/tst_xmlpatterns.cpp
@@ -33,6 +33,10 @@
#include "../qxmlquery/TestFundament.h"
#include "../network-settings.h"
+#ifdef Q_OS_WIN
+# include <qt_windows.h>
+#endif
+
/*!
\class tst_XmlPatterns
\internal
@@ -1043,6 +1047,12 @@ QString tst_XmlPatterns::filterStderr(const QString &in)
for (const QRegExp& rx : irrelevant)
out = out.remove(rx);
+#ifdef Q_OS_WIN
+ // replace some Win32 error messages by standard Unix ones
+ out.replace(qt_error_string(ERROR_FILE_NOT_FOUND), "No such file or directory");
+ out.replace(qt_error_string(ERROR_PATH_NOT_FOUND), "No such file or directory");
+#endif
+
return out;
}