test-query: improve logging
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright (C) 2020 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** This program is free software; you can redistribute it and/or modify it
|
||||||
** under the terms of the GNU General Public License as published by the
|
** under the terms of the GNU General Public License as published by the
|
||||||
@ -54,6 +54,7 @@ test_query()
|
|||||||
auto dump_matches = [](const QueryResults& res) {
|
auto dump_matches = [](const QueryResults& res) {
|
||||||
size_t n{};
|
size_t n{};
|
||||||
for (auto&& item : res)
|
for (auto&& item : res)
|
||||||
|
if (g_test_verbose())
|
||||||
g_debug("%02zu %s %s",
|
g_debug("%02zu %s %s",
|
||||||
++n,
|
++n,
|
||||||
item.path().value_or("<none>").c_str(),
|
item.path().value_or("<none>").c_str(),
|
||||||
|
|||||||
Reference in New Issue
Block a user