aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Khimenko <khim@google.com>2017-03-01 11:59:52 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-01 11:59:52 +0000
commit5e5df0f349441e6357f50327c939ef3e0650caf1 (patch)
tree5a54eb1cb5299a0ee5b0abdd46a7289f2e4e263c
parent6b9fea9249fe2797e797612bf52a44a5fea2bac8 (diff)
parent369e25dccbaea876d1492c8c9bce49367b2823b9 (diff)
downloadplatform_libnativehelper-oreo-vts-release.tar.gz
platform_libnativehelper-oreo-vts-release.tar.bz2
platform_libnativehelper-oreo-vts-release.zip
am: 369e25dccb Change-Id: I1921850653794829a1e0df168afe71cebdc5a795
-rw-r--r--tests/JniInvocation_test.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/JniInvocation_test.cpp b/tests/JniInvocation_test.cpp
index 186b74e..7a73c70 100644
--- a/tests/JniInvocation_test.cpp
+++ b/tests/JniInvocation_test.cpp
@@ -37,8 +37,6 @@
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
#include <sys/_system_properties.h>
-extern void *__system_property_area__;
-
struct LocalPropertyTestState {
LocalPropertyTestState() : valid(false) {
const char* ANDROID_DATA = getenv("ANDROID_DATA");
@@ -51,9 +49,6 @@ struct LocalPropertyTestState {
return;
}
- old_pa = __system_property_area__;
- __system_property_area__ = NULL;
-
pa_dirname = dirname;
pa_filename = pa_dirname + "/__properties__";
@@ -67,9 +62,8 @@ struct LocalPropertyTestState {
return;
}
- __system_property_area__ = old_pa;
-
__system_property_set_filename(PROP_FILENAME);
+ __system_properties_init();
unlink(pa_filename.c_str());
rmdir(pa_dirname.c_str());
}
@@ -78,7 +72,6 @@ public:
private:
std::string pa_dirname;
std::string pa_filename;
- void *old_pa;
};
#endif