libcheck / check

A unit testing framework for C
GNU Lesser General Public License v2.1
1.07k stars 210 forks source link

Fix strings passed to Check's asserts in tests #283

Closed brarcher closed 4 years ago

brarcher commented 4 years ago

There were cases where Check's unit tests were using Check asserts by passing in a message that was either not a string literal or passed no format arguments. This was pointed out by the format-security warning. This commit fixes these cases.