aboutsummaryrefslogblamecommitdiffstats
path: root/util/system/execpath_ut.cpp
blob: f8ca86d9cf20c36095b65c5b2e2cc07fb72558c0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                     
 
                                                  
 
                              
                                  
                                         
                                                             
             
                                               
                                                         
                       
                                     

                  
     
#include "execpath.h"

#include <library/cpp/testing/unittest/registar.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;
        }
    }
}