diff options
-rw-r--r-- | src/manifest_parser_perftest.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/manifest_parser_perftest.cc b/src/manifest_parser_perftest.cc index e40468f..ca62fb2 100644 --- a/src/manifest_parser_perftest.cc +++ b/src/manifest_parser_perftest.cc @@ -16,7 +16,10 @@ // directory. #include <numeric> + +#include <errno.h> #include <stdio.h> +#include <string.h> #ifdef _WIN32 #include "getopt.h" @@ -95,7 +98,8 @@ int main(int argc, char* argv[]) { return 1; } - chdir(kManifestDir); + if (chdir(kManifestDir) < 0) + Fatal("chdir: %s", strerror(errno)); const int kNumRepetitions = 5; vector<int> times; |