tests/auto/qfileinfo/tst_qfileinfo.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   510     tempFile.remove();
   510     tempFile.remove();
   511 
   511 
   512     // This used to crash on Mac, verify that it doesn't anymore.
   512     // This used to crash on Mac, verify that it doesn't anymore.
   513     QFileInfo info("/tmp/../../../../../../../../../../../../../../../../../");
   513     QFileInfo info("/tmp/../../../../../../../../../../../../../../../../../");
   514     info.canonicalFilePath();
   514     info.canonicalFilePath();
       
   515 
       
   516 #if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
       
   517     // This used to crash on Mac
       
   518     QFileInfo dontCrash(QLatin1String("/"));
       
   519     QCOMPARE(dontCrash.canonicalFilePath(), QLatin1String("/"));
       
   520 #endif
   515 
   521 
   516 #ifndef Q_OS_WIN
   522 #ifndef Q_OS_WIN
   517     // test symlinks
   523     // test symlinks
   518     QFile::remove("link.lnk");
   524     QFile::remove("link.lnk");
   519     {
   525     {