// getcwd_t.cxx #include "dataset_util/getcwd.h" #include #include using std::string; using std::cout; using std::endl; int getcwd_t() { string dir = getcwd(); cout << dir << endl; assert( dir.size() > 0 ); assert( dir[0] == '/' ); return 0; } #ifdef CTEST_MAIN int main() { return getcwd_t(); } #endif