hotspot/src/share/vm/logging/log.cpp
changeset 40902 395e1f3ec886
parent 38646 49e5e88613bf
child 41675 36a9cca78d25
equal deleted inserted replaced
40901:0c83ed47db08 40902:395e1f3ec886
  1159   stringStream ss;
  1159   stringStream ss;
  1160   const char* target_name = "tmplogdir";
  1160   const char* target_name = "tmplogdir";
  1161 
  1161 
  1162   // Attempt to log to a directory (existing log not a regular file)
  1162   // Attempt to log to a directory (existing log not a regular file)
  1163   create_directory(target_name);
  1163   create_directory(target_name);
  1164   LogFileOutput bad_file("tmplogdir");
  1164   LogFileOutput bad_file("file=tmplogdir");
  1165   assert(bad_file.initialize("", &ss) == false, "file was initialized "
  1165   assert(bad_file.initialize("", &ss) == false, "file was initialized "
  1166          "when there was an existing directory with the same name");
  1166          "when there was an existing directory with the same name");
  1167   assert(strstr(ss.as_string(), "tmplogdir is not a regular file") != NULL,
  1167   assert(strstr(ss.as_string(), "tmplogdir is not a regular file") != NULL,
  1168          "missing expected error message, received msg: %s", ss.as_string());
  1168          "missing expected error message, received msg: %s", ss.as_string());
  1169   ss.reset();
  1169   ss.reset();