summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/CodeCacheCreate_test.cpp
diff options
context:
space:
mode:
authorDaniel Norman <danielnorman@google.com>2021-06-18 15:33:19 -0700
committerDaniel Norman <danielnorman@google.com>2021-06-18 15:33:19 -0700
commitecd3692e12e1202aadd4b42fb99e3da161b36e3b (patch)
tree04e529f2ece58d2ac83802fd92e24cf2b76db2f1 /libnativebridge/tests/CodeCacheCreate_test.cpp
parent1047c0335892951ca46f8cbcadb08ddd88619d1b (diff)
parent659f44d84f0f3dd2a66dd578158a3cef8e61cd09 (diff)
Merge SP1A.210616.001
Change-Id: I425f739aee9f6a0526325802fd46217bb4b92ccc
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);