diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-04-04 17:44:31 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-04 17:44:31 +0000 |
commit | 16adb3e0461ba8f5e641900c90b84be5af5c428f (patch) | |
tree | ff3824bb739a0e2307955a661959aa18c4e2ad50 /build_overrides/gtest.gni | |
parent | dc566b0a76f9d2ad112c8cc35fa6dc8eaf942316 (diff) | |
download | pdfium-16adb3e0461ba8f5e641900c90b84be5af5c428f.tar.xz |
Expand ~ when present in directory path
pdfium_test currently isn't expanding ~ in paths that are passed in
for directories, which is causing commands like this pdfium_test
--font-dir=~/Fonts to fail. This CL adds in performing sh style
expansion on the ~ character for --font-dir and --bin-dir.
This change depends on POSIX wordexp being available, so guarding the
code with checks for Linux || OSX, since those are the only platforms
that we build for that are POSIX complient in this regard.
BUG=pdfium:1027
Change-Id: I05d518dfa71d95c3b0cfd1f4b382e0a6f4a0f515
Reviewed-on: https://pdfium-review.googlesource.com/28611
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'build_overrides/gtest.gni')
0 files changed, 0 insertions, 0 deletions