equal
deleted
inserted
replaced
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(); |