OpenVPN 3 Core Library
Loading...
Searching...
No Matches
test_rc.cpp File Reference
#include "test_common.hpp"
#include <iostream>
#include <string>
#include <functional>
#include <openvpn/common/rc.hpp>
Include dependency graph for test_rc.cpp:

Go to the source code of this file.

Classes

class  TestType< BASE >
 
class  TestParentType< Base >
 

Functions

template<typename Test >
void test ()
 
 TEST (misc, RCthreadUnsafe)
 
 TEST (misc, RCthreadSafe)
 

Variables

const char * expected_output
 

Function Documentation

◆ test()

template<typename Test >
void test ( )

Definition at line 80 of file test_rc.cpp.

Here is the caller graph for this function:

◆ TEST() [1/2]

TEST ( misc  ,
RCthreadSafe   
)

Definition at line 170 of file test_rc.cpp.

◆ TEST() [2/2]

TEST ( misc  ,
RCthreadUnsafe   
)

Definition at line 165 of file test_rc.cpp.

Variable Documentation

◆ expected_output

const char* expected_output
Initial value:
= "*** TEST1\n"
"Test1()\n"
"~Test1()\n"
"*** TEST2\n"
"Test2()\n"
"t1a: Test2\n"
"t2a: Test2\n"
"t1b: Test2\n"
"t2b: Test2\n"
"tz: Test2\n"
"w1z=3 w2z=3\n"
"~Test2()\n"
"*** TEST3\n"
"Test3()\n"
"N#3: Test3\n"
"NOTIFY #3\n"
"N#2: Test3\n"
"NOTIFY #2\n"
"N#1: Test3\n"
"NOTIFY #1\n"
"~Test3()\n"
"*** TEST4\n"
"Test4()\n"
"parent of Test4\n"
"~Test4()\n"

Definition at line 53 of file test_rc.cpp.