free(param);
if ((rows == 1) && result && (result == tostore) && (retVal1 == 0) && (retVal2 == 0)) {
- if(system("diff i_store_s.tcl i_store.tcl")) {
+ if(system("diff i_store_s.tcl tcl/i_store.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"%s_s.tcl\" and \"%s.tcl\" differ.\n", testid, testid, testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);
free(param);
if ((rows == 1) && result && (result == tostore) && (retVal1 == 0) && (retVal2 == 0)) {
- if(system("diff i_store_existing_s.tcl i_store_existing.tcl")) {
+ if(system("diff i_store_existing_s.tcl tcl/i_store_existing.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"%s_s.tcl\" and \"%s.tcl\" differ.\n", testid, testid, testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);
free(param);
if ((rows == 1) && result && (result == new) && (retVal1 == 0) && (retVal2 == 0) && (retVal3 == 0)) {
- if(system("diff i_store_multiple_s.tcl i_store_multiple.tcl")) {
+ if(system("diff i_store_multiple_s.tcl tcl/i_store_multiple.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"%s_s.tcl\" and \"%s.tcl\" differ.\n", testid, testid, testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);
printf("%s : Param_storeString: Simple.\n", testid);
#endif
- truncate("storage.tcl", 0);
+ truncate("s_store_s.tcl", 0);
param = malloc(sizeof(Param));
- conParam(param);
+ conSetupParam(param, testid);
retVal1 = Param_storeString(param, name, idx, tostore);
retVal2 = Param_getString(param, name, idx, &rows, result);
free(param);
if ((rows == 1) && result && (strcmp(result, tostore) == 0) && (retVal1 == 0) && (retVal2 == 0)) {
- if(system("diff storage.tcl s_store.tcl")) {
+ if(system("diff s_store_s.tcl tcl/s_store.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"storage.tcl\" and \"s_store.tcl\" differ.\n", testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);
printf("%s : Param_storeString: Store a Parameter already existing in the source.\n", testid);
#endif
- truncate("storage.tcl", 0);
+ truncate("s_store_existing_s.tcl", 0);
param = malloc(sizeof(Param));
- conParam(param);
+ conSetupParam(param, testid);
retVal1 = Param_storeString(param, name, idx, tostore);
retVal2 = Param_getString(param, name, idx, &rows, result);
free(param);
if ((rows == 1) && result && (strcmp(result, tostore) == 0) && (retVal1 == 0) && (retVal2 == 0)) {
- if(system("diff storage.tcl s_store_existing.tcl")) {
+ if(system("diff s_store_existing_s.tcl tcl/s_store_existing.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"storage.tcl\" and \"s_store_existing.tcl\" differ.\n", testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);
printf("%s : Param_storeString: Storing a value multiple.\n", testid);
#endif
- truncate("storage.tcl", 0);
+ truncate("s_store_multiple_s.tcl", 0);
param = malloc(sizeof(Param));
- conParam(param);
+ conSetupParam(param, testid);
retVal1 = Param_storeString(param, name, idx, old);
retVal2 = Param_storeString(param, name, idx, new);
free(param);
if ((rows == 1) && result && (strcmp(result, new) == 0) && (retVal1 == 0) && (retVal2 == 0) && (retVal3 == 0)) {
- if(system("diff storage.tcl s_store_multiple.tcl")) {
+ if(system("diff s_store_multiple_s.tcl tcl/s_store_multiple.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"storage.tcl\" and \"s_store_multiple.tcl\" differ.\n", testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);
printf("%s : Param_storeString: Store a string containing a whitespace.\n", testid);
#endif
- truncate("storage.tcl", 0);
+ truncate("s_store_whitespace_s.tcl", 0);
param = malloc(sizeof(Param));
- conParam(param);
+ conSetupParam(param, testid);
retVal1 = Param_storeString(param, name, idx, tostore);
retVal2 = Param_getString(param, name, idx, &rows, result);
free(param);
if ((rows == 1) && result && (strcmp(result, tostore) == 0) && (retVal1 == 0) && (retVal2 == 0)) {
- if(system("diff storage.tcl s_store_whitespace.tcl")) {
+ if(system("diff s_store_whitespace_s.tcl tcl/s_store_whitespace.tcl")) {
#ifdef VERBOSE
- printf("%s : Failed: Files \"storage.tcl\" and \"s_store_whitespace.tcl\" differ.\n", testid);
+ printf("%s : Failed: Files \"%s_s.tcl\" and \"tcl/%s.tcl\" differ.\n", testid, testid, testid);
printf("%s : Error string: %s\n", testid, Param_getErrStr(param));
#else
printf("%s : Failed.\n", testid);