]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Thu, 29 Mar 2001 12:23:09 +0000 (12:23 +0000)
committerhades <hades>
Thu, 29 Mar 2001 12:23:09 +0000 (12:23 +0000)
12 files changed:
allParam/test/filename/f_lowercase_abs.c
allParam/test/filename/f_lowercase_rel.c
allParam/test/filename/f_lowercase_rel_no_basedir.c
allParam/test/int/i_store.c
allParam/test/int/i_store_existing.c
allParam/test/int/i_store_multiple.c
allParam/test/string/s_lowercase.c
allParam/test/string/s_store.c
allParam/test/string/s_store_existing.c
allParam/test/string/s_store_multiple.c
allParam/test/string/s_store_whitespace.c
allParam/test/string/s_whitespace.c

index 30629f9d62922cb021f516a4989280e5d6831348..8cf3b99d6aaf599ae04c1da797beef0361ab5fa4 100644 (file)
@@ -30,10 +30,10 @@ int f_lowercase_abs(const char *testid) {
 #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
+               myRetVal = -1;
        }
 
        desParam(param);
index bb5a955d1cb18e475584c421bd59ad260b8ce790..968fec3a8305dd184df5c0c7220659c266dda8dd 100644 (file)
@@ -30,10 +30,10 @@ int f_lowercase_rel(const char *testid) {
 #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
+               myRetVal = -1;
        }
 
        desParam(param);
index 2333c9b15bde88a5b1491fd863daecc4fafcded0..42428613e9b47da5cd26f79fa1b651c836c651e4 100644 (file)
@@ -31,10 +31,10 @@ int f_lowercase_rel_no_basedir(const char *testid) {
 #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
+               myRetVal = -1;
        }
 
        desParam(param);
index db0518cd6b47252f77fe10e6d727b1a023f55a7d..38f08196161936111b4e2fb45139aaf908e643ee 100644 (file)
@@ -38,10 +38,10 @@ int i_store(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"i_store.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -50,10 +50,10 @@ int i_store(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%ud\'\nreturn Value of store call: %d\nreturn Value of get call: %d.\n", testid, rows, result, retVal1, retVal2);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index 2f1b5ab1439471743724ab663333a75da364e3cb..13c75b56fde55d5d1b969832a38606f0ab3d1f1e 100644 (file)
@@ -38,10 +38,10 @@ int i_store_existing(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"i_store_existing.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -50,10 +50,10 @@ int i_store_existing(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%ud\'\nreturn Value of store call: %d\nreturn Value of get call: %d.\n", testid, rows, result, retVal1, retVal2);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index bb4208a5a19ccf75bd5db425b92ce0cd12764b46..cdf41f9b82b9e61cd456b1e3ad7261c2af5fe1e5 100644 (file)
@@ -41,10 +41,10 @@ int i_store_multiple(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"i_store_multiple.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -53,10 +53,10 @@ int i_store_multiple(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%ud\'\nreturn Value of first store call: %d\nreturn Value of second store call: %d\nreturn Value of get call: %d.\n", testid, rows, result, retVal1, retVal2, retVal3);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index d03b0d5b2d592bc21a34747067b66141898c8627..cf0cbe79552f17a2fefe535c4aa0042e589dfca5 100644 (file)
@@ -30,10 +30,10 @@ int s_lowercase(const char *testid) {
 #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
+               myRetVal = -1;
        }
 
        desParam(param);
index bf92dc10ed4f25a7cd6e678609a6a893032211d0..e1c31562f1c4881c56df6d1d25ea7a6490232fb1 100644 (file)
@@ -38,10 +38,10 @@ int s_store(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"s_store.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -50,10 +50,10 @@ int s_store(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%s\'\nreturn Value of store call: %d\nreturn Value of get call: %d.\n", testid, rows, result, retVal1, retVal2);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index 01ffd93d105ffb62c4c89016c15140413ac640bc..01a34e4972436c23071404b6a51f4596cb87e5b1 100644 (file)
@@ -38,10 +38,10 @@ int s_store_existing(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"s_store_existing.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -50,10 +50,10 @@ int s_store_existing(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%s\'\nreturn Value of store call: %d\nreturn Value of get call: %d.\n", testid, rows, result, retVal1, retVal2);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index e994363e0daac55dae713e5abdbe47d934a3cff1..088a23567a214676e1148969e1045e86ffb1000b 100644 (file)
@@ -41,10 +41,10 @@ int s_store_multiple(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"s_store_multiple.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -53,10 +53,10 @@ int s_store_multiple(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%s\'\nreturn Value of first store call: %d\nreturn Value of second store call: %d\nreturn Value of get call: %d.\n", testid, rows, result, retVal1, retVal2, retVal3);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index a2da2d944cdd60aba473c7fc5c4ce79097aad11d..28ac1ab16cd37c359c58e80ee4634c2530a3cd02 100644 (file)
@@ -38,10 +38,10 @@ int s_store_whitespace(const char *testid) {
 #ifdef VERBOSE
                        printf("%s : Failed: Files \"storage.tcl\" and \"s_store_whitespace.tcl\" differ.\n", testid);
                        printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-                       myRetVal = -1;
 #else
                        printf("%s : Failed.\n", testid);
 #endif
+                       myRetVal = -1;
                } else {
                        myRetVal = 0;
                        printf("%s : Passed.\n", testid);
@@ -50,10 +50,10 @@ int s_store_whitespace(const char *testid) {
 #ifdef VERBOSE
                printf("%s : Failed. Rows: %d, result: \'%s\', return Value of store call: %d, return Value of get call: %d.\n", testid, rows, result, retVal1, retVal2);
                printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
-               myRetVal = -1;
 #else
                printf("%s : Failed.\n", testid);
 #endif
+               myRetVal = -1;
        }
 
        return myRetVal;
index 9a30a2283d7d6cbf01a8f15093c53231ee9e848b..7aa122a2333c67763eed7cd9b9502ba3689f7b19 100644 (file)
@@ -23,17 +23,17 @@ int s_whitespace(const char *testid) {
        conParam(param);
 
        retVal = Param_getString(param, name, idx, &rows, result);
-       if ((rows == 1) && result && (strcmp(result, "test100 whith whitespace") == 0) && (retVal == 0)) {
+       if ((rows == 1) && result && (strcmp("test100 whith whitespace", result) == 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
+               myRetVal = -1;
        }
 
        desParam(param);