commit | 3613f17554127f75c8e30662185648fba9942e0f | [log] [tgz] |
---|---|---|
author | Nick Maniscalco <maniscalco@google.com> | Mon Jun 17 22:15:52 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Mon Jun 17 22:15:52 2019 +0000 |
tree | f91ce3cf7cb08c038233f7c7c7f39fd97a84cd0f | |
parent | 03c51984b59a74e0cb9460d7df7b8594b2dc34b7 [diff] |
[zircon][ulib][zxtest] Swap args in ASSERT_OK to match (expected, actual) order Change the order of the arguments passed to the underlying _ASSERT_VAR_STATUS macros so that "expected" comes before "actual". This matches what we do in the other macros and matches _ASSERT_VAR_STATUS's "prototype". Now, when an ASSERT_OK fails, the printed message correctly identifies the tested argument as "actual". For example, zx_status_t status = ZX_ERR_BAD_STATE; EXPECT_OK(ZX_ERR_BAD_STATE); now yields: Expected: ZX_OK Actual : status Which is: ZX_ERR_BAD_STATE Test: Ran exiting integration tests and observed the output Change-Id: I9e1af9e8c1d78e77f39506465282aa8bc5ae8745
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See the documentation.