diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-25 14:45:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-25 17:03:40 +0200 |
commit | d41b436058def4497240c54afc38b319ce388430 (patch) | |
tree | 6cba42dcca2893d6a1b408fe0b9c5aa5a4a87785 /vcl/workben | |
parent | e7c30e6c1ee8fbea7d44ab00e2721ff13dfa4da5 (diff) |
expose recovering zips for testing
Change-Id: I4709a2fb0bbb0fcc4c7d57dad53c899e7ba79cb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150971
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/workben')
-rw-r--r-- | vcl/workben/fftester.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index 2d624b8e4c43..bc4a692b4f81 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -532,6 +532,16 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SvFileStream aFileStream(out, StreamMode::READ); ret = static_cast<int>((*pfnImport)(aFileStream)); } + else if (strcmp(argv[2], "zip") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + pfnImport = load(u"libpackage2.so", "TestImportZip"); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = static_cast<int>((*pfnImport)(aFileStream)); + } #endif } catch (...) |