diff options
| -rw-r--r-- | tests/JniInvocation_test.cpp | 9 |
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 |
