ptunit: silently truncate expression strings in error reports

When reporting a test fail, ptunit prints the source location of the failing
check and the expression that was tested.  Those expressions are typically
rather small.

Silently truncate expressions that get too big.

Fixes #70.

Change-Id: I914c88f8a88be8f47e3a8b8876955516c9a35e87
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
1 file changed