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-29 16:22:09 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-06-29 16:22:09 +0000
commit4d5dadef2f66a00dee5d00d9051ffab0704f4cf3 (patch)
tree1e05ebe44335d6eb35e527bdc255f358438baa46 /libnativebridge/tests/CodeCacheCreate_test.cpp
parent86cd08250e1833e8cb24870996fd83142ac1b2fa (diff)
parentd2e3a885b977300c59510da7aff0f4a169d2a88c (diff)
Snap for 7441201 from d2e3a885b977300c59510da7aff0f4a169d2a88c to s-keystone-qcom-release
Change-Id: I219ad91cc84ab4842e420556a29346ff9149c66a
Diffstat (limited to 'libnativebridge/tests/CodeCacheCreate_test.cpp')
-rw-r--r--libnativebridge/tests/CodeCacheCreate_test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libnativebridge/tests/CodeCacheCreate_test.cpp b/libnativebridge/tests/CodeCacheCreate_test.cpp
index 1bd309c5c8..58270c43dd 100644
--- a/libnativebridge/tests/CodeCacheCreate_test.cpp
+++ b/libnativebridge/tests/CodeCacheCreate_test.cpp
@@ -23,10 +23,9 @@
namespace android {
// Tests that the bridge initialization creates the code_cache if it doesn't
-// exist.
+// exists.
TEST_F(NativeBridgeTest, CodeCacheCreate) {
- // Make sure that code_cache does not exist
- rmdir(kCodeCache);
+ // Make sure that code_cache does not exists
struct stat st;
ASSERT_EQ(-1, stat(kCodeCache, &st));
ASSERT_EQ(ENOENT, errno);