about summary refs log tree commit diff homepage
path: root/unittests/TestMain.cpp
blob: 42dd721ac9f9fb096198ab36d9a9a8132341c379 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//===--- unittests/TestMain.cpp - unittest driver -------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "klee/Config/Version.h"

#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Signals.h"

#include "gtest/gtest.h"

int main(int argc, char **argv) {

#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 9)
  llvm::sys::PrintStackTraceOnErrorSignal(argv[0], true);
#else
  llvm::sys::PrintStackTraceOnErrorSignal(true);
#endif

  testing::InitGoogleTest(&argc, argv);
  return RUN_ALL_TESTS();
}