equal
deleted
inserted
replaced
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 { |