Do not exit on failure to open logFile
authorborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 13 Sep 2012 18:54:48 +0000 (18:54 +0000)
committerborenet@google.com <borenet@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 13 Sep 2012 18:54:48 +0000 (18:54 +0000)
Temporary solution for write-protected Android devices.  Intention is to revert
in favor of a more permanent solution.
Review URL: https://codereview.appspot.com/6497132

git-svn-id: http://skia.googlecode.com/svn/trunk@5535 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/bench_pictures_main.cpp

index 2f5fb0e..8edbb94 100644 (file)
@@ -172,7 +172,10 @@ static void parse_commandline(int argc, char* const argv[], SkTArray<SkString>*
                     str.printf("Could not open %s for writing.", *argv);
                     gLogger.logError(str);
                     usage(argv0);
-                    exit(-1);
+                    // TODO(borenet): We're disabling this for now, due to
+                    // write-protected Android devices.  The very short-term
+                    // solution is to ignore the fact that we have no log file.
+                    //exit(-1);
                 }
             } else {
                 gLogger.logError("Missing arg for --logFile\n");
@@ -236,7 +239,7 @@ static void parse_commandline(int argc, char* const argv[], SkTArray<SkString>*
         }  else if (0 == strcmp(*argv, "--device")) {
             ++argv;
             if (argv >= stop) {
-                gLogger.logError("Missing mode for --deivce\n");
+                gLogger.logError("Missing mode for --device\n");
                 usage(argv0);
                 exit(-1);
             }