2013-07-09 08:02:33 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-10-15 15:25:34 +02:00
|
|
|
#include <memory>
|
2018-09-21 13:56:26 +02:00
|
|
|
|
2019-08-12 13:40:47 +02:00
|
|
|
#include "absl/debugging/failure_signal_handler.h"
|
|
|
|
|
#include "absl/debugging/symbolize.h"
|
2018-10-15 15:25:34 +02:00
|
|
|
#include "test/test_main_lib.h"
|
2017-08-29 05:51:57 -07:00
|
|
|
|
2013-07-09 08:02:33 +00:00
|
|
|
int main(int argc, char* argv[]) {
|
2019-08-12 13:40:47 +02:00
|
|
|
// Initialize the symbolizer to get a human-readable stack trace
|
2020-05-15 15:01:54 +02:00
|
|
|
absl::InitializeSymbolizer(argv[0]);
|
2019-08-12 13:40:47 +02:00
|
|
|
|
2020-05-15 15:01:54 +02:00
|
|
|
absl::FailureSignalHandlerOptions options;
|
|
|
|
|
absl::InstallFailureSignalHandler(options);
|
2019-08-12 13:40:47 +02:00
|
|
|
|
2018-10-15 15:25:34 +02:00
|
|
|
std::unique_ptr<webrtc::TestMain> main = webrtc::TestMain::Create();
|
2018-10-17 17:37:47 +02:00
|
|
|
int err_code = main->Init(&argc, argv);
|
2018-10-15 15:25:34 +02:00
|
|
|
if (err_code != 0) {
|
|
|
|
|
return err_code;
|
2017-12-04 15:56:21 +01:00
|
|
|
}
|
2018-10-15 15:25:34 +02:00
|
|
|
return main->Run(argc, argv);
|
2013-07-09 08:02:33 +00:00
|
|
|
}
|