Skip to content
Commit 744d0759 authored by Mike Yu's avatar Mike Yu
Browse files

Fix jniThrowException to print correct error message in NativeMultinetworkJni.cpp

The parameters `actual` and `expected` in the macros EXPECT_{GE,GT,EQ}
can be a statement. If their returned value are different, it results
in them being called twice. Some statements are not supposed to be
called more than once, such as expectAnswersValid that automatically
closes the fd.

Bug: 242681575
Test: atest CtsNetTestCasesLatestSdk:MultinetworkApiTest
Change-Id: Id730bcc3248ae77fcf05db414a7f5a2fe1d212e3
parent 7119e9cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment