bindings: cxx: add a comment about the need for a dummy chip to run tests
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 9 May 2018 12:05:20 +0000 (14:05 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 9 May 2018 16:00:39 +0000 (18:00 +0200)
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 <bartekgola@gmail.com>
bindings/cxx/examples/gpiod_cxx_tests.cpp

index ad2ef70aa470851c5aeb8d28fd3e35fb9c60b83b..197b3e87d6cf35fe87f7edcb88e6d538a9f4f22c 100644 (file)
@@ -5,7 +5,12 @@
  * Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola@gmail.com>
  */
 
-/* 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 <gpiod.hpp>