summaryrefslogtreecommitdiffstats
path: root/tests/auto/qprinterinfo
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2009-10-01 12:06:11 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2009-10-01 12:07:08 (GMT)
commit276496e9f646be3c442d46fda4298e00330763c2 (patch)
tree97fdd726209c6257f53b65592decc3e3411d6fe0 /tests/auto/qprinterinfo
parent05b7c4d75e9d77aafce285659ec4a2dd3c55691b (diff)
downloadQt-276496e9f646be3c442d46fda4298e00330763c2.zip
Qt-276496e9f646be3c442d46fda4298e00330763c2.tar.gz
Qt-276496e9f646be3c442d46fda4298e00330763c2.tar.bz2
Make test pass even if printer names contain punctuation
Reviewed-by: Jesper
Diffstat (limited to 'tests/auto/qprinterinfo')
-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 2fa7515..7352524 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);