From 53864694ab25dc5dab92a1f0cf9588112380ba50 Mon Sep 17 00:00:00 2001 From: hades Date: Tue, 27 Mar 2001 15:05:45 +0000 Subject: [PATCH] *** empty log message *** --- allParam/test/blob/b_lowercase.h | 4 +-- allParam/test/filename/f_lowercase_rel.c | 35 ++++++++++++++++++++++++ allParam/test/filename/f_lowercase_rel.h | 8 ++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 allParam/test/filename/f_lowercase_rel.c create mode 100644 allParam/test/filename/f_lowercase_rel.h diff --git a/allParam/test/blob/b_lowercase.h b/allParam/test/blob/b_lowercase.h index 14d0a9a..0019aaf 100644 --- a/allParam/test/blob/b_lowercase.h +++ b/allParam/test/blob/b_lowercase.h @@ -1,5 +1,5 @@ -#ifndef I_LOWERCASE_H -#define I_LOWERCASE_H +#ifndef B_LOWERCASE_H +#define B_LOWERCASE_H #include diff --git a/allParam/test/filename/f_lowercase_rel.c b/allParam/test/filename/f_lowercase_rel.c new file mode 100644 index 0000000..1cc9994 --- /dev/null +++ b/allParam/test/filename/f_lowercase_rel.c @@ -0,0 +1,35 @@ +#include +#include + +#include + +#include "f_lowercase_rel.h" + +int f_lowercase_rel(const char *testid, const Param *param) { + char *name = "file"; + char *idx = "rname"; + char result[PARAM_MAX_VALUE_LEN]; + int rows; + int retVal; + int myRetVal; + +#ifdef VERBOSE + printf("%s : Param_getFilename: Lowercase input on correct statements.\n", testid); +#endif + + retVal = Param_getFilename(param, name, idx, &rows, result); + if ((rows == 1) && result && (strcmp(result, "test/blob/BLOB") == 0) && (retVal == 0)) { + myRetVal = 0; + printf("%s : Passed.\n", testid); + } else { +#ifdef VERBOSE + printf("%s : Failed. Rows: %d, result: \'%s\', return Value: %d.\n", testid, rows, result, retVal); + printf("%s : Error string: %s\n", testid, Param_getErrStr(param)); + myRetVal = -1; +#else + printf("%s : Failed.\n", testid); +#endif + } + return myRetVal; +} + diff --git a/allParam/test/filename/f_lowercase_rel.h b/allParam/test/filename/f_lowercase_rel.h new file mode 100644 index 0000000..1a3e4b5 --- /dev/null +++ b/allParam/test/filename/f_lowercase_rel.h @@ -0,0 +1,8 @@ +#ifndef F_LOWERCASE_REL_H +#define F_LOWERCASE_REL_H + +#include + +int f_lowercase_rel(const char *, const Param *); + +#endif -- 2.43.0