tests: use test_build_str() in test cases
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 5 Nov 2017 13:31:46 +0000 (14:31 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 5 Nov 2017 13:31:46 +0000 (14:31 +0100)
commit19a9f62a6573691cd56ff3767a13262eb95f32b2
tree21bce2076206fe6ad245f2d040193694e78b6c57
parent8cae086f0497ccd89f06a3568bce276002126635
tests: use test_build_str() in test cases

Shrink the test code by using the newly provided helper function for
building custom strings wherever asprintf() was used before.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/tests-chip.c
tests/tests-gpiodetect.c
tests/tests-gpiofind.c
tests/tests-gpioinfo.c