We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69b513c + 0e40ba3 commit c8e4154Copy full SHA for c8e4154
init/init_test.cpp
@@ -17,6 +17,7 @@
17
#include <functional>
18
19
#include <android-base/file.h>
20
+#include <android-base/properties.h>
21
#include <gtest/gtest.h>
22
23
#include "action.h"
@@ -32,6 +33,8 @@
32
33
#include "service_parser.h"
34
#include "util.h"
35
36
+using android::base::GetIntProperty;
37
+
38
namespace android {
39
namespace init {
40
@@ -240,6 +243,10 @@ TEST(init, EventTriggerOrderMultipleFiles) {
240
243
}
241
244
242
245
TEST(init, RejectsCriticalAndOneshotService) {
246
+ if (GetIntProperty("ro.product.first_api_level", 10000) < 30) {
247
+ GTEST_SKIP() << "Test only valid for devices launching with R or later";
248
+ }
249
250
std::string init_script =
251
R"init(
252
service A something
0 commit comments