summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/CodeCacheCreate_test.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2021-07-08 10:43:49 -0700
committerLinux Build Service Account <lnxbuild@localhost>2021-07-08 10:43:49 -0700
commitc7c67b94d45a85457467c689a35c48da31f29dca (patch)
tree2cbccdb6c26edcc84ead802da5cfdb66245b3ae5 /libnativebridge/tests/CodeCacheCreate_test.cpp
parentc40a802ad44a0df680e6e4fc557cbb27ba10c152 (diff)
parent86cd08250e1833e8cb24870996fd83142ac1b2fa (diff)
Merge 86cd08250e1833e8cb24870996fd83142ac1b2fa on remote branch
Change-Id: I6e32d4007cbeb96a3542b3d10f7d393cace80b89
Diffstat (limited to 'libnativebridge/tests/CodeCacheCreate_test.cpp')
-rw-r--r--libnativebridge/tests/CodeCacheCreate_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libnativebridge/tests/CodeCacheCreate_test.cpp b/libnativebridge/tests/CodeCacheCreate_test.cpp
index 58270c43dd..1bd309c5c8 100644
--- a/libnativebridge/tests/CodeCacheCreate_test.cpp
+++ b/libnativebridge/tests/CodeCacheCreate_test.cpp
@@ -23,9 +23,10 @@
namespace android {
// Tests that the bridge initialization creates the code_cache if it doesn't
-// exists.
+// exist.
TEST_F(NativeBridgeTest, CodeCacheCreate) {
- // Make sure that code_cache does not exists
+ // Make sure that code_cache does not exist
+ rmdir(kCodeCache);
struct stat st;
ASSERT_EQ(-1, stat(kCodeCache, &st));
ASSERT_EQ(ENOENT, errno);