summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/CodeCacheCreate_test.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-30 10:01:22 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-30 10:01:22 +0000
commitaae7570ffe491b8139208ab586b5aa6c4dfd15b7 (patch)
tree2cbccdb6c26edcc84ead802da5cfdb66245b3ae5 /libnativebridge/tests/CodeCacheCreate_test.cpp
parent4d5dadef2f66a00dee5d00d9051ffab0704f4cf3 (diff)
parent0c439eb5cdabdbec94db42aa3d33c3104d0a551f (diff)
Snap for 7508253 from 0c439eb5cdabdbec94db42aa3d33c3104d0a551f to s-keystone-qcom-release
Change-Id: I2c12a21bbb5f3d2b3743884fc6e32fd06962bfec
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);