testsuite: split out function to compare outputs exactly
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 18 Dec 2018 21:42:09 +0000 (13:42 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 3 Jan 2019 20:03:27 +0000 (12:03 -0800)
commita5cc3521d85735d123d2720508c4fa938531d5a4
treeb2577bba4220bb561ab51b798ff470639427f759
parent4a894aeaebf69166e6344d8a82c2600a1d4c0d08
testsuite: split out function to compare outputs exactly

Move functionality to compare the exact output to a separate function
and allocate one buffer per output/match pair. This will allow us to
extend this to allow other types of comparisons. Since now we are using
heap-allocated buffer, keep the buffer allocation to the caller, so we
don't have to allocate and free it on every invocation. It also avoids
the different comparison functions to have to deal with it.
testsuite/testsuite.c