]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Tue, 27 Mar 2001 15:05:45 +0000 (15:05 +0000)
committerhades <hades>
Tue, 27 Mar 2001 15:05:45 +0000 (15:05 +0000)
allParam/test/blob/b_lowercase.h
allParam/test/filename/f_lowercase_rel.c [new file with mode: 0644]
allParam/test/filename/f_lowercase_rel.h [new file with mode: 0644]

index 14d0a9abfb263f44859b7da786f669490140ef40..0019aaf7b95f7a488b61811d02b2c3df1572b2cc 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef I_LOWERCASE_H
-#define I_LOWERCASE_H
+#ifndef B_LOWERCASE_H
+#define B_LOWERCASE_H
 
 #include <allParam.h>
 
diff --git a/allParam/test/filename/f_lowercase_rel.c b/allParam/test/filename/f_lowercase_rel.c
new file mode 100644 (file)
index 0000000..1cc9994
--- /dev/null
@@ -0,0 +1,35 @@
+#include <stdio.h>
+#include <string.h>
+
+#include <allParam.h>
+
+#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 (file)
index 0000000..1a3e4b5
--- /dev/null
@@ -0,0 +1,8 @@
+#ifndef F_LOWERCASE_REL_H
+#define F_LOWERCASE_REL_H
+
+#include <allParam.h>
+
+int f_lowercase_rel(const char *, const Param *);
+
+#endif