Files
epics-base/modules/libcom/test/initHookTest.c
Michael Davidsaver 710c50b5ed add initHookTest
2021-06-30 13:40:53 -07:00

31 lines
725 B
C

/*************************************************************************\
* Copyright (c) 2021 Michael Davidsaver
* SPDX-License-Identifier: EPICS
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
#include <stdlib.h>
#include <string.h>
#include <testMain.h>
#include <epicsUnitTest.h>
#include <initHooks.h>
static
void testHookNames(void)
{
const char* s;
s = initHookName(initHookAtEnd);
testOk(strcmp(s, "initHookAtEnd")==0, "'%s' == 'initHookAtEnd'", s);
}
MAIN(initHookTest)
{
testPlan(1);
testHookNames();
return testDone();
}