[libcamera-devel,v2,08/11] test: Rename list test to list-cameras

Message ID 20190107231151.23291-9-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • libcamera: Add event notification and timers
Related show

Commit Message

Laurent Pinchart Jan. 7, 2019, 11:11 p.m. UTC
The list test generates a list binary in the test directory, which
conflicts with the C++ std::list header of the same name. The binary
gets included instead of the header file, breaking compilation.

Rename the test to avoid this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
---
Changes since v1:

- Rename list.cpp to list-cameras.cpp
---
 test/{list.cpp => list-cameras.cpp} | 0
 test/meson.build                    | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename test/{list.cpp => list-cameras.cpp} (100%)

Patch

diff --git a/test/list.cpp b/test/list-cameras.cpp
similarity index 100%
rename from test/list.cpp
rename to test/list-cameras.cpp
diff --git a/test/meson.build b/test/meson.build
index 184a7eeb5e27..30350d2219a1 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -3,7 +3,7 @@  subdir('libtest')
 subdir('media_device')
 
 public_tests = [
-    ['list',            'list.cpp'],
+    ['list-cameras',    'list-cameras.cpp'],
 ]
 
 internal_tests = [