From: Bartosz Golaszewski Date: Wed, 9 May 2018 12:05:20 +0000 (+0200) Subject: bindings: cxx: add a comment about the need for a dummy chip to run tests X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d0c400397af5ec2dacc2edcc73c589a74cfb8f0f;p=qemu-gpiodev%2Flibgpiod.git bindings: cxx: add a comment about the need for a dummy chip to run tests In order to run the C++ tests/examples, we need at least one dummy chip to be present in the system. It also needs to be the first GPIO chip. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/cxx/examples/gpiod_cxx_tests.cpp b/bindings/cxx/examples/gpiod_cxx_tests.cpp index ad2ef70..197b3e8 100644 --- a/bindings/cxx/examples/gpiod_cxx_tests.cpp +++ b/bindings/cxx/examples/gpiod_cxx_tests.cpp @@ -5,7 +5,12 @@ * Copyright (C) 2017-2018 Bartosz Golaszewski */ -/* Misc tests/examples of the C++ API. */ +/* + * Misc tests/examples of the C++ API. + * + * These tests assume that at least one dummy gpiochip is present in the + * system and that it's detected as gpiochip0. + */ #include