commit | a9c40a375b9f6e813edcf053b6a351acf8648ba4 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Tue Nov 05 13:46:14 2019 -0800 |
committer | Josh Gao <jmgao@google.com> | Thu Dec 12 14:25:45 2019 -0800 |
tree | f73cf0ec4640abf5737170a11ea60d7d885f23fc | |
parent | ced211f6ddd51378b9df64cc61bb4714f28c522c [diff] |
base: avoid evaluating macro argument multiple times. Previously, in the regex test helpers, we would evaluate the haystack expression again to generate the error message, which leads to nonsensical errors if the expression returns a different value on the second call (e.g. functions like dlerror which return null on subsequent calls). Test: bionic-unit-tests with a failure Test: treehugger Change-Id: I2126cefeb45e26638194af8a82d0f2a9d7196edf