Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4512912
pcmk_is_probe_test.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
pcmk_is_probe_test.c
View Options
/*
* Copyright 2021 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* This source code is licensed under the GNU General Public License version 2
* or later (GPLv2+) WITHOUT ANY WARRANTY.
*/
#include <crm_internal.h>
#include <crm/common/unittest_internal.h>
static void
is_probe_test(void **state)
{
assert_false(pcmk_is_probe(NULL, 0));
assert_false(pcmk_is_probe("", 0));
assert_false(pcmk_is_probe("blahblah", 0));
assert_false(pcmk_is_probe("monitor", 1));
assert_true(pcmk_is_probe("monitor", 0));
}
PCMK__UNIT_TEST(NULL, NULL,
cmocka_unit_test(is_probe_test))
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, Jun 25, 7:51 AM (1 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1952571
Default Alt Text
pcmk_is_probe_test.c (675 B)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment