< prev index next >
src/share/vm/logging/log.cpp
Print this page
rev 11857 : imported patch 8157948
*** 1159,1169 ****
stringStream ss;
const char* target_name = "tmplogdir";
// Attempt to log to a directory (existing log not a regular file)
create_directory(target_name);
! LogFileOutput bad_file("tmplogdir");
assert(bad_file.initialize("", &ss) == false, "file was initialized "
"when there was an existing directory with the same name");
assert(strstr(ss.as_string(), "tmplogdir is not a regular file") != NULL,
"missing expected error message, received msg: %s", ss.as_string());
ss.reset();
--- 1159,1169 ----
stringStream ss;
const char* target_name = "tmplogdir";
// Attempt to log to a directory (existing log not a regular file)
create_directory(target_name);
! LogFileOutput bad_file("file=tmplogdir");
assert(bad_file.initialize("", &ss) == false, "file was initialized "
"when there was an existing directory with the same name");
assert(strstr(ss.as_string(), "tmplogdir is not a regular file") != NULL,
"missing expected error message, received msg: %s", ss.as_string());
ss.reset();
< prev index next >