Files
epics-base/modules/libcom/test/epicsUnitTestTest.c
Andrew Johnson 3c99391d93 Added SPDX License ID to all EPICS-original source files
In some cases the license-identification header was missing,
so I added that as well. Replaced the remaining headers that
specifically identified "Versions 3.13.7 and higher".

Makefiles and the build system were deliberately excluded.
2020-08-03 11:53:01 -05:00

38 lines
1.0 KiB
C

/*************************************************************************\
* Copyright (c) 2006 The University of Chicago, as Operator of Argonne
* National Laboratory.
* SPDX-License-Identifier: EPICS
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/*
* Author: Andrew Johnson
*
* Test for the unit test module...
*/
#include "epicsUnitTest.h"
#define testOk1_success 1
#define testOk1_failure 0
int main (void) {
testPlan(11);
testOk(1, "testOk(1)");
testOk(0, "testOk(0)");
testPass("testPass()");
testFail("testFail()");
testSkip(2, "Skipping two");
testTodoBegin("Testing Todo");
testOk(1, "Todo pass");
testOk(0, "Todo fail");
testSkip(1, "Todo skip");
testTodoEnd();
testOk1(testOk1_success);
testOk1(testOk1_failure);
testDiag("Diagnostic");
/* testAbort("testAbort"); */
return testDone();
}