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

Commit 17f3d258 authored by Raymond Chiu's avatar Raymond Chiu
Browse files

Run setenforce 1 on test teardown

Cleanup after test to avoid changing test environment

Fixes: 148917835
Test: SurfaceFlingerTest sffakehwc_test
Change-Id: I5a61401d523302d77c6974befe8ff9844f853c8e
parent f3a06711
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -145,6 +145,7 @@ protected:
        mBGSurfaceControl.clear();
        mFGSurfaceControl.clear();
        mComposerClient.clear();
        system("setenforce 1");
    }

    sp<SurfaceComposerClient> mComposerClient;
+1 −0
Original line number Diff line number Diff line
@@ -183,6 +183,7 @@ void FakeHwcEnvironment::TearDown() {
    // Wait for mock call signaling teardown?
    property_set("debug.sf.nobootanimation", "0");
    property_set("debug.sf.hwc_service_name", "default");
    system("setenforce 1");
    ALOGI("Test env tear down - done");
}