test: nondeterministic unit test error.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 23 Jan 2024 02:14:31 +0000 (11:14 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 23 Jan 2024 07:23:31 +0000 (16:23 +0900)
commit16a2282566de8d87000782050b4360d95c53ff66
tree341621c497bee9d4324db1f1fd131b4e5484e873
parente53079d571b310d069d03e3cb7d0eca881914888
test: nondeterministic unit test error.

Due to multithread nondeterminism, we get
occasional unit test error from the "new_data_cb"
callback.

Create a lock and make data local to the function.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
tests/nnstreamer_filter_custom/unittest_filter_custom.cc