--- /dev/null
+#include <stdio.h>
+#include <string.h>
+
+#include <allParam.h>
+
+#include "b_lowercase.h"
+
+int b_lowercase(const char *testid, const Param *param) {
+ char *name = "tname";
+ char *idx = "tint";
+ char buf[256];
+ FILE *result;
+ FILE *store;
+ size_t size;
+ size_t bufsize;
+ int retVal;
+ int myRetVal;
+
+#ifdef VERBOSE
+ printf("%s : Param_getBlob: Lowercase input on correct statements.\n", testid);
+#endif
+
+ retVal = Param_getBlob(param, name, idx, &size, &result);
+ store = fopen("blob", "w+");
+ while(bufsize = fread(buf, 1, 256, result)) {
+ fwrite(buf, 1, bufsize, store);
+ }
+ fclose(result);
+ fclose(store);
+ if ((size == 16368) && (retVal == 0)) {
+ if (!system("diff blob BLOB")) {
+ myRetVal = 0;
+ printf("%s : Passed.\n", testid);
+ } else {
+#ifdef VERBOSE
+ printf("%s : Failed. Files \"blob\" and \"BLOB\" differ.\n", testid);
+#else
+ printf("%s : Failed.\n", testid);
+#endif
+ myRetVal = -1;
+ }
+ } else {
+#ifdef VERBOSE
+ printf("%s : Failed. Size: %d, return Value: %d.\n", testid, size, retVal);
+ printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
+#else
+ printf("%s : Failed.\n", testid);
+#endif
+ myRetVal = -1;
+ }
+ return myRetVal;
+}
+