unit-tests: Pass stringyfied assertion statement as non-format string argument
authorMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 10:02:45 +0000 (12:02 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 11:44:40 +0000 (13:44 +0200)
commit2b40c9646ce04a5dd21353ae62747e1e9670d7c7
tree8f2c264931aee6197faa12273422c1b86dce67cb
parentf206bb74449f46c0558993f2b779ffa096fb32f2
unit-tests: Pass stringyfied assertion statement as non-format string argument

If the assertion contains a modulo (%) operation, test_fail_msg() handles
this as printf() format specifier. Pass the assertion string as argument for
an explicit "%s" in the format string, instead.
src/libstrongswan/tests/test_suite.h