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

Commit 24d0304e authored by Yifan Hong's avatar Yifan Hong
Browse files

lshal: Do not use lastError API.

Use the new API with error message pointer instead.

Test: lshal_test
Bug: 179270601
Change-Id: I19d1307c7b72b90d205f307a81edfb1efabb874e
parent 1fe4c9f1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -508,10 +508,10 @@ TEST_F(ListTest, DumpVintf) {
    EXPECT_THAT(output, HasSubstr("a.h.foo6@6.0::IFoo/6"));
    EXPECT_EQ("", err.str());

    std::string error;
    vintf::HalManifest m;
    EXPECT_EQ(true, vintf::gHalManifestConverter(&m, out.str()))
        << "--init-vintf does not emit valid HAL manifest: "
        << vintf::gHalManifestConverter.lastError();
    EXPECT_EQ(true, vintf::gHalManifestConverter(&m, out.str(), &error))
        << "--init-vintf does not emit valid HAL manifest: " << error;
}

// test default columns