--- a/tests/auto/qfileinfo/tst_qfileinfo.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/tests/auto/qfileinfo/tst_qfileinfo.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -513,6 +513,12 @@
QFileInfo info("/tmp/../../../../../../../../../../../../../../../../../");
info.canonicalFilePath();
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
+ // This used to crash on Mac
+ QFileInfo dontCrash(QLatin1String("/"));
+ QCOMPARE(dontCrash.canonicalFilePath(), QLatin1String("/"));
+#endif
+
#ifndef Q_OS_WIN
// test symlinks
QFile::remove("link.lnk");