test/*: catch and print all exceptions
This commit is contained in:
test
ContainerScan.cxxDumpDatabase.cxxReadApeTags.cxxWriteFile.cxxdump_playlist.cxxdump_rva2.cxxdump_text_file.cxxread_conf.cxxread_mixer.cxxread_tags.cxxrun_convert.cxxrun_decoder.cxxrun_encoder.cxxrun_filter.cxxrun_gunzip.cxxrun_gzip.cxxrun_input.cxxrun_neighbor_explorer.cxxrun_normalize.cxxrun_output.cxxrun_storage.cxxsoftware_volume.cxxtest_vorbis_encoder.cxxvisit_archive.cxx
@ -28,7 +28,7 @@
|
||||
#include "AudioParser.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "util/PrintException.hxx"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
@ -59,7 +59,7 @@ try {
|
||||
}
|
||||
|
||||
pv.Close();
|
||||
} catch (const std::exception &e) {
|
||||
LogError(e);
|
||||
} catch (...) {
|
||||
PrintException(std::current_exception());
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user