< prev index next >

src/share/vm/logging/log.cpp

Print this page
rev 11857 : [mq]: 8157948

*** 1155,1169 **** } void Test_invalid_log_file() { ResourceMark rm; 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(); --- 1155,1169 ---- } void Test_invalid_log_file() { ResourceMark rm; stringStream ss; ! const char* target_name = "file=tmplogdir"; // Attempt to log to a directory (existing log not a regular file) create_directory(target_name); ! LogFileOutput bad_file(target_name); 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 >