diff options
author | Elliott Hughes <enh@google.com> | 2016-08-31 15:07:18 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-09-01 09:24:24 -0700 |
commit | 82ff315bb0fecb9127970e01b399be53c92ca14f (patch) | |
tree | 194dfb8de311f236afdeebce4a5933e4a99cef6b /base/file_test.cpp | |
parent | 6a5ed849e832aac7da24fca5b7cf01d7c052f56e (diff) | |
download | system_core-82ff315bb0fecb9127970e01b399be53c92ca14f.tar.gz system_core-82ff315bb0fecb9127970e01b399be53c92ca14f.tar.bz2 system_core-82ff315bb0fecb9127970e01b399be53c92ca14f.zip |
Add android::base::GetExecutablePath, switch adb and fastboot over.
We'd long had two copies of this stuff, so rather than rewrite both
Linux versions to use android::base::Readlink, let's kill the duplication
too...
Bug: http://b/30988271
Change-Id: I4de58a94a22a4b1faf969a6fc70ca1560a4d5121
Diffstat (limited to 'base/file_test.cpp')
-rw-r--r-- | base/file_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_test.cpp b/base/file_test.cpp index ca01ee88a..f5d60625a 100644 --- a/base/file_test.cpp +++ b/base/file_test.cpp @@ -136,3 +136,7 @@ TEST(file, Readlink) { ASSERT_EQ(max, result); #endif } + +TEST(file, GetExecutablePath) { + ASSERT_NE("", android::base::GetExecutablePath()); +} |