libtasks Documentation  1.6
test_exec.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013-2014 ADTECH GmbH
3  * Licensed under MIT (https://github.com/adtechlabs/libtasks/blob/master/COPYING)
4  *
5  * Author: Andreas Pohl
6  */
7 
8 #include <cppunit/TestCase.h>
9 #include <cppunit/TestFixture.h>
10 #include <cppunit/extensions/HelperMacros.h>
11 
12 namespace tasks {
13 
14 class test_exec : public CppUnit::TestFixture {
18 
19  public:
20  void setUp() {}
21  void tearDown() {}
22 
23  protected:
24  void run();
25 
26  bool check_state(std::atomic<int>& state, int expected);
27 };
28 }
CPPUNIT_TEST_SUITE(test_exec)
void tearDown()
Definition: test_exec.h:21
bool check_state(std::atomic< int > &state, int expected)
Definition: test_exec.cpp:93