aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/execpath_ut.cpp
blob: 40838e01a7d10267571bf50c9ec227a06767fcc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "execpath.h"

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

#include "platform.h"
#include <util/folder/dirut.h>

Y_UNIT_TEST_SUITE(TExecPathTest) {
    Y_UNIT_TEST(TestIt) {
        TString execPath = GetExecPath();
        TString persistentExecPath = GetPersistentExecPath();

        try {
            UNIT_ASSERT(NFs::Exists(execPath)); 
            UNIT_ASSERT(NFs::Exists(persistentExecPath));
        } catch (...) {
            Cerr << execPath << Endl;

            throw;
        }
    }
}