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

Commit f361ecc0 authored by Florian Mayer's avatar Florian Mayer Committed by Android (Google) Code Review
Browse files

Merge "Migrate libsurfaceflinger_unittest off ASan" into main

parents 9d7ed4ed 20dd0bf9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@
  "hwasan-presubmit": [
    {
      "name": "libscheduler_test"
    },
    {
      "name": "libsurfaceflinger_unittest"
    }
  ]
}
+0 −16
Original line number Diff line number Diff line
@@ -50,22 +50,6 @@ cc_test {
        "surfaceflinger_defaults",
    ],
    test_suites: ["device-tests"],
    sanitize: {
        // Using the address sanitizer not only helps uncover issues in the code
        // covered by the tests, but also covers some of the tricky injection of
        // fakes the unit tests currently do.
        //
        // Note: If you get an runtime link error like:
        //
        //   CANNOT LINK EXECUTABLE "/data/local/tmp/libsurfaceflinger_unittest": library "libclang_rt.asan-aarch64-android.so" not found
        //
        // it is because the address sanitizer shared objects are not installed
        // by default in the system image.
        //
        // You can either "make dist tests" before flashing, or set this
        // option to false temporarily.
        address: true,
    },
    static_libs: ["libc++fs"],
    srcs: [
        ":libsurfaceflinger_mock_sources",