Skip to content

Instantly share code, notes, and snippets.

View jphickey's full-sized avatar

Joseph Hickey jphickey

  • Vantage Systems, Inc.
  • New York
View GitHub Profile

File src/os/inc/osapi-binsem.h, function OS_BinSemCreate():

  • ONLY IN TEST: OS_ERROR
  • OK: OS_ERR_NAME_TAKEN
  • OK: OS_ERR_NAME_TOO_LONG
  • OK: OS_ERR_NO_FREE_IDS
  • OK: OS_INVALID_POINTER
  • ONLY IN DOXY: OS_SEM_FAILURE
  • OK: OS_SUCCESS

File src/os/inc/osapi-binsem.h, function OS_BinSemFlush():

[BEGIN] UNIT TEST
[BEGIN] 01 SETUP
[ END] No test cases
[BEGIN] 01 OS_API_Init
[ PASS] 01.001 ut_oscore_misc_test.c:101 - OS_QueueCreate(&qId, "Queue A", qDepth, qSize, qFlags) (-1) == OS_ERROR (-1)
[ PASS] 01.002 ut_oscore_misc_test.c:102 - OS_BinSemCreate(&semIds[0], "BinSem 1", semInitValue, semOptions) (-1) == OS_ERROR (-1)
-> ld < network-api-test.exe
value = 4186128 = 0x3fe010
->
-> OS_BSPMain
[BEGIN] UNIT TEST
[BEGIN] 01 SETUP
OS_ConsoleCreate_Impl():142:OS_ConsoleCreate_Impl(): Starting Async Console Handler
OS_API_Init():231:Warning: Microsecs per sec value of 1000020 does not equal 1000000 (MicroSecPerTick: 16667 TicksPerSecond: 60)
@jphickey
jphickey / cfe_msg_stubs.c
Created July 30, 2020 13:55
cfe_msg_stubs.c
/*
* -----------------------------------------------------------
* Stub implementation of CFE_MSG_GenerateChecksum
* -----------------------------------------------------------
*/
int32 CFE_MSG_GenerateChecksum(CFE_MSG_Message_t *MsgPtr)
{
UT_Stub_RegisterContextGenericArg(UT_KEY(CFE_MSG_GenerateChecksum), MsgPtr);
int32 status;
@jphickey
jphickey / sch_custom.c
Created February 25, 2020 16:01
Simplified "custom" logic for CFS SCH applcation
/*
** $Id: sch_custom.c 1.3 2015/03/01 14:01:44EST sstrege Exp $
**
** Copyright 2007-2014 United States Government as represented by the
** Administrator of the National Aeronautics and Space Administration.
** All Other Rights Reserved.
**
** This software was created at NASA's Goddard Space Flight Center.
** This software is governed by the NASA Open Source Agreement and may be
** used, distributed and modified only pursuant to the terms of that
@jphickey
jphickey / rtems-timer-test-ic-20191030.log
Created November 4, 2019 21:10
OSAL RTEMS timer test log
*** RTEMS Info ***
COPYRIGHT (c) 1989-2008.
On-Line Applications Research Corporation (OAR).
rtems-4.11.1.99(Intel i386/i386 with i387/pc686)
Stack size=8
Workspace size=1048576
Bootloader Command Line: build/exe/cpu1/timer-test.exe