File: catch_main.cpp

package info (click to toggle)
rkcommon 1.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,276 kB
  • sloc: cpp: 33,504; sh: 31; makefile: 13
file content (19 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2009 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include "rkcommon/tasking/tasking_system_init.h"

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

  // Spawn workers threads
  rkcommon::tasking::initTaskingSystem();

  // Run all tests
  auto result = Catch::Session().run(argc, argv);

  // Terminate worker threads
  rkcommon::tasking::shutdownTaskingSystem();
  return result;
}