[LTP] [PATCH v1 1/1] doc/c-test-api.txt: fix broken example code
Souta Kawahara
souta.kawahara@miraclelinux.com
Thu Aug 24 03:33:08 CEST 2023
There is double definition of 'test'.
Fixed it.
Signed-off-by: Souta Kawahara <souta.kawahara@miraclelinux.com>
---
doc/c-test-api.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
index e4e88edec..560a1a203 100644
--- a/doc/c-test-api.txt
+++ b/doc/c-test-api.txt
@@ -36,7 +36,7 @@ static void setup(void)
tst_brk(TBROK | TERRNO, "setenv() failed");
}
-static void test(void)
+static void run(void)
{
char *ret;
@@ -64,7 +64,7 @@ next:
}
static struct tst_test test = {
- .test_all = test,
+ .test_all = run,
.setup = setup,
};
-------------------------------------------------------------------------------
--
2.25.1
More information about the ltp
mailing list