r259782 - in /trunk/gcc: ChangeLog selftest.c s...
dmalcolm@gcc.gnu.org
dmalcolm@gcc.gnu.org
Tue May 1 00:02:00 GMT 2018
Author: dmalcolm
Date: Tue May 1 00:02:49 2018
New Revision: 259782
URL: https://gcc.gnu.org/viewcvs?rev=259782&root=gcc&view=rev
Log:
selftest: remove "Yoda ordering" in assertions
gcc/ChangeLog:
* selftest.c (assert_streq): Rename "expected" and "actual" to
"val1" and "val2". Extend NULL-handling to cover both inputs
symmetrically, while still requiring both to be non-NULL for a pass.
* selftest.h (assert_streq): Rename "expected" and "actual" to
"val1" and "val2".
(ASSERT_EQ): Likewise.
(ASSERT_EQ_AT): Likewise.
(ASSERT_KNOWN_EQ): Likewise.
(ASSERT_KNOWN_EQ_AT): Likewise.
(ASSERT_NE): Likewise.
(ASSERT_MAYBE_NE): Likewise.
(ASSERT_MAYBE_NE_AT): Likewise.
(ASSERT_STREQ): Likewise. Clarify that both must be non-NULL for
the assertion to pass.
(ASSERT_STREQ_AT): Likewise.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/selftest.c
trunk/gcc/selftest.h
More information about the Gcc-cvs
mailing list