From d0c400397af5ec2dacc2edcc73c589a74cfb8f0f Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 9 May 2018 14:05:20 +0200 Subject: [PATCH] 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 --- bindings/cxx/examples/gpiod_cxx_tests.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.30.2