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

Commit 8c8c4ab3 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6668007 from 8272339d to rvc-release

Change-Id: I2f007fa202ab2dfa2e91d19a6da424630e252c12
parents f3f86ec8 8272339d
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