selftest.h: add ASSERT_STR_CONTAINS
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 23 Aug 2016 16:51:57 +0000 (16:51 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 23 Aug 2016 16:51:57 +0000 (16:51 +0000)
commit9f5897866862e760d8276fc1ef7979852f83a86a
treef17d1999677ddbab47de54aad4f2b81fe533d38e
parenta181ec03012c1884f45482ba2d5b8cd00ef96a71
selftest.h: add ASSERT_STR_CONTAINS

gcc/ChangeLog:
* selftest.c (selftest::assert_str_contains): New function.
(selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
* selftest.h (selftest::assert_str_contains): New decl.
(ASSERT_STR_CONTAINS): New macro.

From-SVN: r239707
gcc/ChangeLog
gcc/selftest.c
gcc/selftest.h