Skip to content

Commit

Permalink
Print the whole path always
Browse files Browse the repository at this point in the history
When running the test suite and a reference file cannot be opened,
the whole path is useful. And if it fails, the test should never
pass so it does not matter if we strip away anyway.
  • Loading branch information
sjoelund committed May 6, 2015
1 parent d6cbc61 commit baef058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/runtime/SimulationResultsCmp.c
Expand Up @@ -604,7 +604,7 @@ void* SimulationResultsCmp_compareResults(int isResultCmp, int runningTestsuite,
if (UNKNOWN_PLOT == SimulationResultsImpl__openFile(filename,&simresglob_c)) {
char *str = (char*) malloc(25+strlen(filename));
*str = 0;
strcat(strcat(str,"Error opening file: "),runningTestsuite ? SystemImpl__basename(filename) : filename);
strcat(strcat(str,"Error opening file: "), filename);
void *res = mmc_mk_scon(str);
free(str);
return mmc_mk_cons(res,mmc_mk_nil());
Expand All @@ -613,7 +613,7 @@ void* SimulationResultsCmp_compareResults(int isResultCmp, int runningTestsuite,
if (UNKNOWN_PLOT == SimulationResultsImpl__openFile(reffilename,&simresglob_ref)) {
char *str = (char*) malloc(35+strlen(reffilename));
*str = 0;
strcat(strcat(str,"Error opening reference file: "),runningTestsuite ? SystemImpl__basename(reffilename) : reffilename);
strcat(strcat(str,"Error opening reference file: "), reffilename);
void *res = mmc_mk_scon(str);
free(str);
return mmc_mk_cons(res,mmc_mk_nil());
Expand Down

0 comments on commit baef058

Please sign in to comment.