tests: Remove trietest's dependence on cprintf.
authorGabe Black <gabeblack@google.com>
Thu, 30 Nov 2017 01:58:59 +0000 (17:58 -0800)
committerGabe Black <gabeblack@google.com>
Mon, 4 Dec 2017 23:09:47 +0000 (23:09 +0000)
commit4b04e3893a098044b4f46dbff0ff060260e86ca6
tree1c24a2caa79c2f842e36fa2696da3d592dc3dfde
parentb359faa73b199b4defa42983ba17068d66beaaca
tests: Remove trietest's dependence on cprintf.

Dumping the structure of the tries being constructed was useful for
debugging when the trie data structure was being developed, but the
output can't be automatically verified easily, and what's considered
correct depends on the specific implementation of the trie itself.

To make some of the earlier tests more meaningful, additional lookups
were added which verified that the correct values were returned when
the nodes of the trie were in particular arrangements.

Change-Id: Ib464ad1804d13fe40882da2190d7bf452da83818
Reviewed-on: https://gem5-review.googlesource.com/6223
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/base/trie.hh
src/unittest/trietest.cc