test/*: catch and print all exceptions

This commit is contained in:
Max Kellermann
2018-07-17 21:56:43 +02:00
parent edb44a536a
commit d6529d8c60
24 changed files with 116 additions and 122 deletions

@ -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;
}