summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-10-01 14:06:11 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-10-01 14:07:08 +0200
commit276496e9f646be3c442d46fda4298e00330763c2 (patch)
tree97fdd726209c6257f53b65592decc3e3411d6fe0
parent05b7c4d75e9d77aafce285659ec4a2dd3c55691b (diff)
Make test pass even if printer names contain punctuation
Reviewed-by: Jesper
-rw-r--r--tests/auto/qprinterinfo/tst_qprinterinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qprinterinfo/tst_qprinterinfo.cpp b/tests/auto/qprinterinfo/tst_qprinterinfo.cpp
index 2fa75151ae..73525248bb 100644
--- a/tests/auto/qprinterinfo/tst_qprinterinfo.cpp
+++ b/tests/auto/qprinterinfo/tst_qprinterinfo.cpp
@@ -134,7 +134,7 @@ QStringList tst_QPrinterInfo::getPrintersFromSystem()
QString output = getOutputFromCommand(command);
QStringList list = output.split(QChar::fromLatin1('\n'));
- QRegExp reg("^[Pp]rinter ([a-zA-Z0-9_]+)");
+ QRegExp reg("^[Pp]rinter ([.a-zA-Z0-9_-]+)");
for (int c = 0; c < list.size(); ++c) {
if (reg.indexIn(list[c]) >= 0) {
QString printer = reg.cap(1);