mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge pull request #25704 from tchaikov/wip-36737-unittest-log
test: write log file to current directory Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This commit is contained in:
commit
76f95c52c4
@ -30,7 +30,7 @@ TEST(Log, Simple)
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
|
||||
log.set_log_file("/tmp/foo");
|
||||
log.set_log_file("foo");
|
||||
log.reopen_log_file();
|
||||
|
||||
log.set_stderr_level(5, -1);
|
||||
@ -59,7 +59,7 @@ TEST(Log, ReuseBad)
|
||||
subs.set_gather_level(1, 1);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/foo");
|
||||
log.set_log_file("foo");
|
||||
log.reopen_log_file();
|
||||
|
||||
const int l = 0;
|
||||
@ -91,7 +91,7 @@ TEST(Log, ManyNoGather)
|
||||
subs.set_gather_level(1, 1);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
for (int i=0; i<many; i++) {
|
||||
int l = 10;
|
||||
@ -110,7 +110,7 @@ TEST(Log, ManyGatherLog)
|
||||
subs.set_gather_level(1, 10);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
for (int i=0; i<many; i++) {
|
||||
int l = 10;
|
||||
@ -131,7 +131,7 @@ TEST(Log, ManyGatherLogStackSpillover)
|
||||
subs.set_gather_level(1, 10);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
for (int i=0; i<many; i++) {
|
||||
int l = 10;
|
||||
@ -154,7 +154,7 @@ TEST(Log, ManyGather)
|
||||
subs.set_gather_level(1, 1);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
for (int i=0; i<many; i++) {
|
||||
int l = 10;
|
||||
@ -172,7 +172,7 @@ void do_segv()
|
||||
subs.set_gather_level(1, 1);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
|
||||
log.inject_segv();
|
||||
@ -198,7 +198,7 @@ TEST(Log, LargeLog)
|
||||
subs.set_gather_level(1, 10);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
int l = 10;
|
||||
{
|
||||
@ -218,7 +218,7 @@ TEST(Log, LargeFromSmallLog)
|
||||
subs.set_gather_level(1, 10);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/big");
|
||||
log.set_log_file("big");
|
||||
log.reopen_log_file();
|
||||
int l = 10;
|
||||
{
|
||||
@ -242,7 +242,7 @@ TEST(Log, TimeSwitch)
|
||||
subs.set_gather_level(1, 10);
|
||||
Log log(&subs);
|
||||
log.start();
|
||||
log.set_log_file("/tmp/time_switch_log");
|
||||
log.set_log_file("time_switch_log");
|
||||
log.reopen_log_file();
|
||||
int l = 10;
|
||||
bool coarse = true;
|
||||
@ -343,7 +343,7 @@ TEST(Log, Speed_nogather)
|
||||
|
||||
TEST(Log, GarbleRecovery)
|
||||
{
|
||||
static const char* test_file="/tmp/log_for_moment";
|
||||
static const char* test_file="log_for_moment";
|
||||
|
||||
Log* saved = g_ceph_context->_log;
|
||||
Log log(&g_ceph_context->_conf->subsys);
|
||||
|
Loading…
Reference in New Issue
Block a user