Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/test/test-hw4.c File Reference

#include <kernel.h>
#include <proc.h>
#include <stdio.h>

Include dependency graph for test-hw4.c:

Go to the source code of this file.


#define TIMES   5


void testPass (const char *)
void testFail (const char *)
static void bigargs (uchar a, uchar b, uchar c, uchar d, uchar e, uchar f, uchar *testArray)
static void t4 (int times, uchar *testArray, int *shared)
int test_bigargs (int argc, char **argv)
int test_schedule (int argc, char **argv)

Define Documentation

#define TIMES   5

Definition at line 59 of file test-hw4.c.

Referenced by test_recursion(), and test_schedule().

Function Documentation

static void bigargs ( uchar  a,
uchar  b,
uchar  c,
uchar  d,
uchar  e,
uchar  f,
uchar testArray 
) [static]

Definition at line 8 of file test-hw4.c.

Referenced by test_bigargs().

static void t4 ( int  times,
uchar testArray,
int *  shared 
) [static]

Definition at line 21 of file test-hw4.c.

References currpid, and resched().

int test_bigargs ( int  argc,
char **  argv 

Definition at line 37 of file test-hw4.c.

References bigargs(), create(), INITSTK, OK, printf, ready(), RESCHED_YES, testFail(), and testPass().

Referenced by testItem().

int test_schedule ( int  argc,
char **  argv 

Definition at line 61 of file test-hw4.c.

References create(), FALSE, INITSTK, OK, printf, ready(), resched(), t4, testFail(), testPass(), TIMES, and TRUE.

Referenced by testItem().

void testFail ( const char *   ) 

Definition at line 11 of file testhelper.c.

void testPass ( const char *   ) 

Definition at line 6 of file testhelper.c.

Generated on Thu Oct 9 22:35:17 2008 for xinu by  doxygen 1.5.5