diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-18 12:11:48 (GMT) |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2009-09-18 12:14:06 (GMT) |
commit | df062a2df4e9a438b6e876801cbd04a7cab7a569 (patch) | |
tree | e450a0c7a1a64470ba269563d239cbb0cc25cd5d /tests/auto | |
parent | 67ea870f6f8432d002110af6f36bbc8539be5131 (diff) | |
download | Qt-df062a2df4e9a438b6e876801cbd04a7cab7a569.zip Qt-df062a2df4e9a438b6e876801cbd04a7cab7a569.tar.gz Qt-df062a2df4e9a438b6e876801cbd04a7cab7a569.tar.bz2 |
Add debug output
This test mysteriously fails when run from the autotest system, but
succeeds when run manually. We need more data to find out what is
going on.
Sort-of-reviewed-by: Jesper
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qdirmodel/tst_qdirmodel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qdirmodel/tst_qdirmodel.cpp b/tests/auto/qdirmodel/tst_qdirmodel.cpp index ec05a08..be46527 100644 --- a/tests/auto/qdirmodel/tst_qdirmodel.cpp +++ b/tests/auto/qdirmodel/tst_qdirmodel.cpp @@ -614,17 +614,24 @@ void tst_QDirModel::task196768_sorting() QTreeView view; QPersistentModelIndex index = model.index(path); + qDebug() << "Path" << path << "count" << model.rowCount(index) << "index" << index; + view.setModel(&model); + qDebug() << "After setModel" << index; QModelIndex index2 = model.index(path); + qDebug() << "A" << index << index2; QCOMPARE(index.data(), index2.data()); view.setRootIndex(index); index2 = model.index(path); + qDebug() << "B" << index << index2; QCOMPARE(index.data(), index2.data()); view.setCurrentIndex(index); index2 = model.index(path); + qDebug() << "C" << index << index2; QCOMPARE(index.data(), index2.data()); view.setSortingEnabled(true); index2 = model.index(path); + qDebug() << "After sorting" << index << index2; QCOMPARE(index.data(), index2.data()); } |