| 10 | |
| 11 | |
| 12 | TEST(Runtime, ArcadiaSourceRoot) { |
| 13 | NTesting::TScopedEnvironment contextGuard("YA_TEST_CONTEXT_FILE", ""); // remove context filename |
| 14 | { |
| 15 | auto tmpDir = ::GetSystemTempDir(); |
| 16 | NTesting::TScopedEnvironment guard("ARCADIA_SOURCE_ROOT", tmpDir); |
| 17 | Singleton<NPrivate::TTestEnv>()->ReInitialize(); |
| 18 | EXPECT_EQ(tmpDir, ArcadiaSourceRoot()); |
| 19 | } |
| 20 | { |
| 21 | NTesting::TScopedEnvironment guard("ARCADIA_SOURCE_ROOT", ""); |
| 22 | Singleton<NPrivate::TTestEnv>()->ReInitialize(); |
| 23 | EXPECT_FALSE(ArcadiaSourceRoot().empty()); |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | TEST(Runtime, BuildRoot) { |
| 28 | NTesting::TScopedEnvironment contextGuard("YA_TEST_CONTEXT_FILE", ""); // remove context filename |
nothing calls this directly
no test coverage detected