summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/CodeCacheCreate_test.cpp
diff options
context:
space:
mode:
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);