Skip to content

Commit

Permalink
Fix core dump and mark cli-e-2.test as passing now.
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Mar 5, 2024
1 parent 6dc075d commit 093a472
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion regress/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
set(XFAIL_TESTS
cli-e.test
cli-e-2.test
sort-dupes.test
)

Expand Down
2 changes: 2 additions & 0 deletions regress/cli-e-2.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ stdout
Rezipping - dupe.zip
--------------------------------------------------
Adding - abc (4 bytes)...Done
Not done
end-of-inline-data
stderr
Zip file "dupe.zip" contains more than one file named "abc"
!!!! There were problems! !!!!
end-of-inline-data
10 changes: 5 additions & 5 deletions src/trrntzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ int MigrateZip(const char *zip_path, const char *pDir, WORKSPACE *ws,

// If there was an error above then clean up and return.
if (error) {
fprintf(mig->fProcessLog, "Not done\n");
logprint(stdout, mig->fProcessLog, "Not done\n");
unzClose(UnZipHandle);
zipClose(ZipHandle, NULL);
remove(szTmpZipFileName);
Expand Down Expand Up @@ -869,11 +869,11 @@ void DisplayMigrateSummary(WORKSPACE *ws, MIGRATE *mig) {

if (mig->bErrorEncountered) {
if (ws->fErrorLog)
fprintf(mig->fProcessLog,
"!!!! There were problems! See \"%s\" for details! !!!!\n",
ws->pszErrorLogFile);
logprint(stdout, mig->fProcessLog,
"!!!! There were problems! See \"%s\" for details! !!!!\n",
ws->pszErrorLogFile);
else
fprintf(mig->fProcessLog, "!!!! There were problems! !!!!\n");
logprint(stdout, mig->fProcessLog, "!!!! There were problems! !!!!\n");
}
}
}
Expand Down

0 comments on commit 093a472

Please sign in to comment.