Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7b2200a1 authored by Tom Cherry's avatar Tom Cherry Committed by Automerger Merge Worker
Browse files

Merge "init: skip RejectsCriticalAndOneshotService for devices launched before...

Merge "init: skip RejectsCriticalAndOneshotService for devices launched before R" am: c8e4154d am: 9c590e4c am: f18e009f am: 1154a222 am: 6529e627

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1359383

Change-Id: I2e5d38e6f9706dbf7d8484a523359bcc75182d45
parents d4c69114 6529e627
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <functional>

#include <android-base/file.h>
#include <android-base/properties.h>
#include <gtest/gtest.h>

#include "action.h"
@@ -32,6 +33,8 @@
#include "service_parser.h"
#include "util.h"

using android::base::GetIntProperty;

namespace android {
namespace init {

@@ -240,6 +243,10 @@ TEST(init, EventTriggerOrderMultipleFiles) {
}

TEST(init, RejectsCriticalAndOneshotService) {
    if (GetIntProperty("ro.product.first_api_level", 10000) < 30) {
        GTEST_SKIP() << "Test only valid for devices launching with R or later";
    }

    std::string init_script =
            R"init(
service A something