GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_unit_test / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

file_unit_test_path.c File Reference

FILE package unit tests for file path software. More...

#include <stdio.h>
#include <string.h>
#include <PBS/MBA.h>
#include <MSG/MSG_pubdefs.h>
#include <FBS/FBS_pubrtos.h>
#include <FBS/FBS_msgs.h>
#include <file_unit_test_private.h>

Functions

int file_path_test_param (void)
int file_path_test_func (void)

Variables

const unsigned int file_id_0
const unsigned int file_id_1
const unsigned int file_id_5
const unsigned int file_id_6
const char * file_path_0
const char * file_path_1
const char * file_usr_dev_5
const char * file_usr_dev_6
const char * file_path_5
const char * file_path_6
static const char * dumpLine


Detailed Description

FILE package unit tests for file path software.

Author:
D.L. Wood

Function Documentation

int file_path_test_func ( void   ) 

Test that the file_path functions work correctly on sample paths and file ID's.

Return values:
0 Success.
-1 Failure

References file_id_0, file_id_1, file_id_5, file_id_6, file_path_0, file_path_1, file_path_5, file_path_6, file_usr_dev_5, and file_usr_dev_6.

Referenced by file_unit_test().

int file_path_test_param ( void   ) 

Performs invalid and out of range tests on parameters for file_path library functions.

Return values:
0 Success.
-1 Failure

References dumpLine.

Referenced by file_unit_test().


Variable Documentation

dumpLine [static]

Initial value:

 
        "-------------------------------------------------------------------------------\n"
A separator line for display.

Referenced by file_hdr_test_param(), file_hdr_test_set(), file_hdr_test_verify(), file_path_test_param(), file_unit_test(), file_upl_info(), file_upl_print(), file_upl_test_err(), file_upl_test_func(), and file_upl_test_param().

A sample file ID word.

A sample file ID word.

device = 1 directory = 3 file = 103455

Referenced by file_path_test_func().

A sample file ID word.

A sample file ID word.

device = 2 directory = 38 file = 22

Referenced by file_path_test_func().

A sample file ID word.

A sample file ID word.

device = 5 directory = 8 file = 10444

Referenced by file_path_test_func().

A sample file ID word.

A sample file ID word.

device = 6 directory = 27 file = 14

Referenced by file_path_test_func().

A sample file path string.

A sample system file path string.

device = 1 directory = 3 file = 103455

Referenced by file_path_test_func().

A sample file path string.

A sample system file path string.

device = 2 directory = 38 file = 22

Referenced by file_path_test_func().

A sample user file path string.

A sample user file path string.

device = 5 directory = 8 file = 10444

Referenced by file_path_test_func().

A sample user file path string.

A sample user file path string.

device = 6 directory = 27 file = 14

Referenced by file_path_test_func().

A sample user-defined device name.

Referenced by file_path_test_func().

A sample user-defined device name.

Referenced by file_path_test_func().


Generated on Fri Sep 30 18:57:40 2011 by  doxygen 1.5.8