execpath_ut.cpp 529 B

123456789101112131415161718192021
  1. #include "execpath.h"
  2. #include <library/cpp/testing/unittest/registar.h>
  3. #include <util/folder/dirut.h>
  4. Y_UNIT_TEST_SUITE(TExecPathTest) {
  5. Y_UNIT_TEST(TestIt) {
  6. TString execPath = GetExecPath();
  7. TString persistentExecPath = GetPersistentExecPath();
  8. try {
  9. UNIT_ASSERT(NFs::Exists(execPath));
  10. UNIT_ASSERT(NFs::Exists(persistentExecPath));
  11. } catch (...) {
  12. Cerr << execPath << Endl;
  13. throw;
  14. }
  15. }
  16. } // Y_UNIT_TEST_SUITE(TExecPathTest)