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

Commit e2193549 authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Fix test documentation error

There is no guarantee that createDirectChannel will fail with a
specific error code.

Bug: 293817236
Test: None
Change-Id: Ic1facb36f9289dce4aae79025b9c36db4fc5a352
parent 65c0b693
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ void testInvalidSharedMem_NoCrash(SensorManager &mgr) {
    int ret = mgr.createDirectChannel(
            kMemSize, ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY, resourceHandle);

    // Should print -22 (BAD_VALUE) and the device runtime shouldn't restart
    // Should not succeed (ret != OK) and the device runtime shouldn't restart
    printf("createInvalidDirectChannel=%d\n", ret);

    // Secondary test: correct channel creation & destruction (should print 0)