// get_hostname_t.cxx #include "dataset_util/get_hostname.h" #include "dataset_util/XmlElement.h" #include #include using std::cout; using std::endl; void msg(const char* msg) { cout << "----- "; cout << msg; cout << " -----" << endl; } int get_hostname_t() { msg("Get hostname"); cout << get_hostname() << endl; assert( get_hostname().size() ); msg("All tests passed."); return 0; } #ifdef CTEST_MAIN int main() { return get_hostname_t(); } #endif