aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/getpid_ut.cpp
blob: fb0d42ef7602c2cb3c8d85c941182762b67d3f20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "getpid.h"

#include <library/cpp/testing/unittest/registar.h> 

class TGetPidTest: public TTestBase {
    UNIT_TEST_SUITE(TGetPidTest);
    UNIT_TEST(Test);
    UNIT_TEST_SUITE_END();

public:
    void Test();
};

UNIT_TEST_SUITE_REGISTRATION(TGetPidTest);

void TGetPidTest::Test() {
    const TProcessId pid = GetPID();
    UNIT_ASSERT(pid != 0);
}