+2007-12-01 Adam Treat <treat@kde.org>
+
+ Reviewed by Simon.
+
+ * Check to see if the directory exists and exit if not.
+
+ * DumpRenderTree/qt/main.cpp:
+ (main):
+
2007-12-01 Adam Treat <treat@kde.org>
Reviewed by Simon.
FcInit();
FcConfig *config = FcConfigCreate();
QByteArray fontDir = getenv("WEBKIT_TESTFONTS");
- if (fontDir.isEmpty()) {
+ if (fontDir.isEmpty() || !QDir(fontDir).exists()) {
fprintf(stderr,
"\n\n"
"--------------------------------------------------------------------\n"
- "WEBKIT_TESTFONTS environment variable is not set.\n"
+ "WEBKIT_TESTFONTS environment variable is not set correctly.\n"
"This variable has to point to the directory containing the fonts\n"
"you can checkout from svn://labs.trolltech.com/svn/webkit/testfonts\n"
"--------------------------------------------------------------------\n"