tests/lib: C++ify `test-fields-bin.cpp`
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 13 Feb 2024 03:28:30 +0000 (22:28 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 19 Feb 2024 18:10:15 +0000 (13:10 -0500)
commit2dac3508348b0c8c2bc25844eae8b46cf055a8de
treef62e8b14452cf5276892334d98d14a3e88bb7670
parent5d15e4cab25bba8cf293e7edb6adf3c6b1c68958
tests/lib: C++ify `test-fields-bin.cpp`

 - use the C++ bindings
 - rename `test_string_clear` to `testStringClear`
 - use an anonymous namespace
 - declare testStringClear as `noexcept`
 - use constexpr

I checked that the test still managed to catch the bug fixed in
0022a87819b0 ("Fix: clear_string_field(): set first character to 0").

Change-Id: I3631b22f9e70ea5db620ce0597d04e5035bfa91d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11793
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/lib/test-fields-bin.cpp
This page took 0.024392 seconds and 4 git commands to generate.