projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/lib/conds: make `condMain()` take a span for args
[babeltrace.git]
/
tests
/
lib
/
conds
/
utils.cpp
diff --git
a/tests/lib/conds/utils.cpp
b/tests/lib/conds/utils.cpp
index f1d9969e1ed24f2f8806349aa07b47c826866d94..b7d2c487e03504eac70ed44f47f8ebb826154b55 100644
(file)
--- a/
tests/lib/conds/utils.cpp
+++ b/
tests/lib/conds/utils.cpp
@@
-50,9
+50,9
@@
void listCondTriggers(const CondTriggers& condTriggers) noexcept
} /* namespace */
} /* namespace */
-void condMain(const
int argc, const char ** const
argv, const CondTriggers& condTriggers) noexcept
+void condMain(const
bt2s::span<const char * const>
argv, const CondTriggers& condTriggers) noexcept
{
{
- BT_ASSERT(arg
c
>= 2);
+ BT_ASSERT(arg
v.size()
>= 2);
if (strcmp(argv[1], "list") == 0) {
listCondTriggers(condTriggers);
if (strcmp(argv[1], "list") == 0) {
listCondTriggers(condTriggers);
@@
-65,7
+65,7
@@
void condMain(const int argc, const char ** const argv, const CondTriggers& cond
g_unsetenv("BABELTRACE_EXEC_ON_ABORT");
/* Call the trigger */
g_unsetenv("BABELTRACE_EXEC_ON_ABORT");
/* Call the trigger */
- BT_ASSERT(arg
c
>= 3);
+ BT_ASSERT(arg
v.size()
>= 3);
const auto index = atoi(argv[2]);
const auto index = atoi(argv[2]);
This page took
0.022725 seconds
and
4
git commands to generate.