| 113 | } |
| 114 | |
| 115 | Status GetTestResourceRoot(std::string* out) { |
| 116 | const char* c_root = std::getenv("ARROW_TEST_DATA"); |
| 117 | if (!c_root) { |
| 118 | return Status::IOError( |
| 119 | "Test resources not found, set ARROW_TEST_DATA to <repo root>/testing/data"); |
| 120 | } |
| 121 | *out = std::string(c_root); |
| 122 | return Status::OK(); |
| 123 | } |
| 124 | |
| 125 | // TODO(GH-48593): Remove when libc++ supports std::chrono timezones. |
| 126 | std::optional<std::string> GetTestTimezoneDatabaseRoot() { |