tests: improve the test names
authorBartosz Golaszewski <bartekgola@gmail.com>
Fri, 9 Jun 2017 15:29:54 +0000 (17:29 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Fri, 9 Jun 2017 15:29:54 +0000 (17:29 +0200)
Make the names of the gpiotools test cases more informative.

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

index 747fead5b2f3929afb37ea890f8e956986897d56..b39d551d2d7b7a5c831c5bac34d012a5a2d075c5 100644 (file)
@@ -12,7 +12,7 @@
 
 #include <stdio.h>
 
-static void gpiodetect_good(void)
+static void gpiodetect_simple(void)
 {
        TEST_CLEANUP(test_free_str) char *pattern0 = NULL;
        TEST_CLEANUP(test_free_str) char *pattern1 = NULL;
@@ -41,6 +41,6 @@ static void gpiodetect_good(void)
        TEST_ASSERT_STR_CONTAINS(test_tool_stdout(), pattern2);
        TEST_ASSERT_NULL(test_tool_stderr());
 }
-TEST_DEFINE(gpiodetect_good,
-           "tools: gpiodetect - good",
+TEST_DEFINE(gpiodetect_simple,
+           "tools: gpiodetect - simple",
            0, { 4, 8, 16 });
index f2531c3a877966bb85741ef437af162a6a393860..3a883306a6b3d7c4ae3386b63c324da5fd16b111 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "gpiod-test.h"
 
-static void gpiofind_good(void)
+static void gpiofind_found(void)
 {
        test_gpiotool_run("gpiofind", "gpio-mockup-B-7", (char *)NULL);
        test_tool_wait();
@@ -21,8 +21,8 @@ static void gpiofind_good(void)
        TEST_ASSERT_STR_EQ(test_tool_stdout(), "gpiochip1 7\n");
        TEST_ASSERT_NULL(test_tool_stderr());
 }
-TEST_DEFINE(gpiofind_good,
-           "tools: gpiofind - good",
+TEST_DEFINE(gpiofind_found,
+           "tools: gpiofind - found",
            TEST_FLAG_NAMED_LINES, { 4, 8 });
 
 static void gpiofind_not_found(void)
index 3837653daad2d2d9b29ce7857f86c755b6466a91..5264b614fd393604d245e8d80c23e47990d41f0b 100644 (file)
@@ -64,5 +64,5 @@ static void gpioinfo_one_exported(void)
        TEST_ASSERT_REGEX_MATCH(test_tool_stdout(), ptrn);
 }
 TEST_DEFINE(gpioinfo_one_exported,
-           "tools: gpioinfo - one exported",
+           "tools: gpioinfo - exported line",
            0, { 4, 8 });