]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: fix assertion in Store unit tests
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Aug 2015 09:43:53 +0000 (02:43 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 21 Aug 2015 09:43:53 +0000 (02:43 -0700)
commitd3da4d1a354b6c01ed1aa4a6d2536d6011ecf3ab
treedb781e234153e76b9ebad15b9d90d11c181a4125
parent18d1eddf50880857d7da79e075446caaf54caa8d
Cleanup: fix assertion in Store unit tests

The old Squid String implementation cannot handle appending nullptr or
negative lengths. So if the test code using CapturingStoreEntry ever
tries to append such it will crash instead of working like a StoreEntry
should.
src/tests/CapturingStoreEntry.h