Skip to content

Commit

Permalink
tst_QFileSystemModel: Remove Win32LongFileName().
Browse files Browse the repository at this point in the history
Modern SSD drives no longer have short file names enabled, causing
the test to fail.

Task-number: QTBUG-29403
Change-Id: I2e9866d8f8a6ed3df9d2dc6630b8cfa47ade0728
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
FriedemannKleint committed Jun 8, 2016
1 parent ae0a2fe commit df3f685
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ private slots:

void caseSensitivity();

#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
void Win32LongFileName();
#endif

void drives_data();
void drives();
void dirsBeforeFiles();
Expand Down Expand Up @@ -932,20 +928,6 @@ void tst_QFileSystemModel::caseSensitivity()
}
}

#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
void tst_QFileSystemModel::Win32LongFileName()
{
QString tmp = flatDirTestPath;
QStringList files;
files << "aaaaaaaaaa" << "bbbbbbbbbb" << "cccccccccc";
QVERIFY(createFiles(tmp, files));
QModelIndex root = model->setRootPath(tmp);
QTRY_VERIFY(model->index(tmp + QLatin1String("/aaaaaa~1")).isValid());
QTRY_VERIFY(model->index(tmp + QLatin1String("/bbbbbb~1")).isValid());
QTRY_VERIFY(model->index(tmp + QLatin1String("/cccccc~1")).isValid());
}
#endif

void tst_QFileSystemModel::drives_data()
{
QTest::addColumn<QString>("path");
Expand Down

0 comments on commit df3f685

Please sign in to comment.