This example had some typos and other basic mistakes that prevented it from being built.
Fixed it. Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com> --- I thing it's a canditate to be applied before the release. What do you think? doc/test-writing-guidelines.txt | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/test-writing-guidelines.txt b/doc/test-writing-guidelines.txt index 6e79d1a..91edbf0 100644 --- a/doc/test-writing-guidelines.txt +++ b/doc/test-writing-guidelines.txt @@ -218,6 +218,7 @@ Let's start with an example, following code is a simple test for a getenv(). */ #include "test.h" +#include "usctest.h" char *TCID = "getenv01"; int TST_TOTAL = 2; @@ -236,7 +237,7 @@ static void test(void) { char *ret; - ret = getenv(TEST_EVN); + ret = getenv(TEST_ENV); if (ret) { if (!strcmp(ret, TEST_ENV_VAL)) @@ -254,7 +255,7 @@ static void test(void) if (ret) tst_resm(TFAIL, "getenv(" TEST_NE_ENV ") = '%s'", ret); else - tst_resm(TPASS, "getenv(" TEST_NE_ENV ")" = NULL); + tst_resm(TPASS, "getenv(" TEST_NE_ENV ") = NULL"); } int main(int argc, char *argv[]) @@ -262,7 +263,7 @@ int main(int argc, char *argv[]) const char *msg; int lc; - if ((msg = parse_opts(argc, argv, NULL, NULL)) + if ((msg = parse_opts(argc, argv, NULL, NULL))) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); setup(); -- 1.7.1 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list