GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> FILE / V3-11-1 > file_unit_test / rad750
#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 |
int file_path_test_func | ( | void | ) |
Test that the file_path functions work correctly on sample paths and file ID's.
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.
0 | Success. | |
-1 | Failure |
References dumpLine.
Referenced by file_unit_test().
dumpLine [static] |
Initial value:
"-------------------------------------------------------------------------------\n"
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().