From 10e5badd74d806d38b1fa2f41070085e08aa5754 Mon Sep 17 00:00:00 2001 From: "treat@webkit.org" Date: Sat, 1 Dec 2007 23:35:19 +0000 Subject: [PATCH] * Check to see if the directory exists and exit if not. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28308 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebKitTools/ChangeLog | 9 +++++++++ WebKitTools/DumpRenderTree/qt/main.cpp | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog index e8754bb3d314..02c565fb4a0d 100644 --- a/WebKitTools/ChangeLog +++ b/WebKitTools/ChangeLog @@ -1,3 +1,12 @@ +2007-12-01 Adam Treat + + Reviewed by Simon. + + * Check to see if the directory exists and exit if not. + + * DumpRenderTree/qt/main.cpp: + (main): + 2007-12-01 Adam Treat Reviewed by Simon. diff --git a/WebKitTools/DumpRenderTree/qt/main.cpp b/WebKitTools/DumpRenderTree/qt/main.cpp index e48cd073f7ff..d60b4a91ccff 100644 --- a/WebKitTools/DumpRenderTree/qt/main.cpp +++ b/WebKitTools/DumpRenderTree/qt/main.cpp @@ -99,11 +99,11 @@ int main(int argc, char* argv[]) 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" -- 2.36.0