Merge "Modify benchmark for appcompat properties, exit when init fails" into main
diff --git a/benchmarks/property_benchmark.cpp b/benchmarks/property_benchmark.cpp
index 15a621b..ff3618e 100644
--- a/benchmarks/property_benchmark.cpp
+++ b/benchmarks/property_benchmark.cpp
@@ -40,9 +40,10 @@
: nprops(nprops), valid(false), system_properties_(false) {
static const char prop_name_chars[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_.";
- valid = system_properties_.AreaInit(dir_.path, nullptr);
+ valid = system_properties_.AreaInit(dir_.path, nullptr, true);
if (!valid) {
- return;
+ printf("Failed to initialize properties, terminating...\n");
+ exit(1);
}
names = new char* [nprops];