Change safe-buffer test structure 32/240232/3
authorMateusz Cegielka <m.cegielka@samsung.com>
Tue, 4 Aug 2020 13:29:11 +0000 (15:29 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 21 Aug 2020 06:32:21 +0000 (06:32 +0000)
commitc806f3ad70a2c694abb0e2bc5e6b695417416b48
tree599422b3068f8e14f83a0834527e88af8159ede3
parentccf06cea1135370c2fdf4b9ecf32c82997a6d8de
Change safe-buffer test structure

test_safe-buffer.cpp contains tests that ensure std::vector fails to
erase possibly confidential memory when its destructor is called, which
try to make sure the SafeBuffer testing method is valid. Since the
SafeBuffer test results may be completely wrong if these tests fail, it
would be better to merge them into one test to avoid misleading results.

I have merged the 4 tests into a single test and added some comments.

Change-Id: I9d58a7a3942a0318c0fa96047a1bdb7e708a69d4
unit-tests/test_safe-buffer.cpp