diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-01-12 13:49:04 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-01-12 13:49:04 +0000 |
commit | a072134bbaf5fce5623c7152f617fd56e0956ac7 (patch) | |
tree | f057bb5175403615e4bf6649a8fac1c898f0f244 /PACE/tests | |
parent | 39821fb9b116e2a54f2458e58de8b40eda8ccdd3 (diff) | |
download | ATCD-a072134bbaf5fce5623c7152f617fd56e0956ac7.tar.gz |
Fri Jan 12 07:35:31 2001 Joe Hoffert <joeh@cs.wustl.edu>
Diffstat (limited to 'PACE/tests')
-rw-r--r-- | PACE/tests/Posix_SP_Test.c | 9 | ||||
-rw-r--r-- | PACE/tests/Stdio_Test.c | 30 | ||||
-rw-r--r-- | PACE/tests/mqueue_test.c | 10 |
3 files changed, 30 insertions, 19 deletions
diff --git a/PACE/tests/Posix_SP_Test.c b/PACE/tests/Posix_SP_Test.c index 12d8ff5b89a..ded757111c0 100644 --- a/PACE/tests/Posix_SP_Test.c +++ b/PACE/tests/Posix_SP_Test.c @@ -18,6 +18,7 @@ * ===================================================================== */ +#if PACE_LYNXOS != 0x300 #include "pace/stdio.h" #include "pace/unistd.h" #include "pace/time.h" @@ -126,6 +127,7 @@ check_sysconf () "_SC_PRIORITY_SCHEDULING", "_SC_REALTIME_SIGNALS"}; + /* Success indicated by compilation for this function. */ printf("pace_sysconf %s\n", success); for (index = 0; index < confnamessize; index++) { @@ -236,3 +238,10 @@ main (int argc, char **argv) PACE_UNUSED_ARG (argv); return 0; } +#else +int +main (int argc, char **argv) +{ + printf("PACE does not support LynxOS 3.0.0.\n"); +} +#endif /* PACE_LYNXOS == 0x300 */ diff --git a/PACE/tests/Stdio_Test.c b/PACE/tests/Stdio_Test.c index e4249d83512..d84cfd9af39 100644 --- a/PACE/tests/Stdio_Test.c +++ b/PACE/tests/Stdio_Test.c @@ -29,6 +29,7 @@ const char * success = "SUCCEEDED"; const char * failure = "***FAILED***"; const int SLEEPTIME = 20; +#if PACE_LYNXOS != 0x300 int main (int argc, char **argv) { @@ -46,8 +47,6 @@ main (int argc, char **argv) return -1; } - printf("pace_fopen %s\n", success); - /* Test writing to a file. */ retval = pace_fputs (string1, file); @@ -57,8 +56,6 @@ main (int argc, char **argv) return -1; } - printf("pace_fputs %s\n", success); - /* Test flushing a file. */ retval = pace_fflush (file); if (retval != 0) @@ -67,8 +64,6 @@ main (int argc, char **argv) return -1; } - printf("pace_fflush %s\n", success); - /* Test seeking in a file. */ retval = pace_fseek (file, 0, @@ -79,8 +74,6 @@ main (int argc, char **argv) return -1; } - printf("pace_fseek %s\n", success); - /* Test reading from a file. */ retval2 = pace_fgets (buffer, sizeof(buffer), @@ -91,16 +84,12 @@ main (int argc, char **argv) return -1; } - printf("pace_fgets %s\n", success); - if (pace_strcmp(buffer, string1) != 0) { printf("strcmp of pace_fgets %s\n", failure); return -1; } - printf("strcmp of pace_fgets %s\n", success); - /* Test closing a file. */ retval = pace_fclose (file); if (retval != 0) @@ -109,16 +98,21 @@ main (int argc, char **argv) return -1; } - printf("pace_fclose %s\n", success); - - /* use this to pause the program to test the size of the exe - * Cntr-Alt-Del and then look at the task manager to - * find the size - */ + /* uncomment this line to pause the program to test the size + * of the exe Cntr-Alt-Del and then look at the task manager to + * find the size pace_sleep (SLEEPTIME); + */ PACE_UNUSED_ARG (argc); PACE_UNUSED_ARG (argv); return 0; } +#else +int +main (int argc, char **argv) +{ + printf("PACE does not support LynxOS 3.0.0.\n"); +} +#endif /* PACE_LYNXOS == 0x300 */ diff --git a/PACE/tests/mqueue_test.c b/PACE/tests/mqueue_test.c index f7cf87b093b..3874564b1a9 100644 --- a/PACE/tests/mqueue_test.c +++ b/PACE/tests/mqueue_test.c @@ -1,5 +1,6 @@ /* $Id$ */ +#if PACE_LYNXOS != 0x300 #include "pace/stdio.h" #include "pace/fcntl.h" #include "pace/mqueue.h" @@ -33,7 +34,7 @@ int main (int argc, char** argv) { #if PACE_LYNXOS - pace_printf ("No errors, have occurred. On the other hand no operations have been performed either. Take what you can get I guess.\n"); + pace_printf ("mqueue_test not supported on LynxOS.\n"); PACE_UNUSED_ARG (argc); PACE_UNUSED_ARG (argv); return EXIT_SUCCESS; @@ -120,3 +121,10 @@ main (int argc, char** argv) return EXIT_SUCCESS; #endif /* ! PACE_LYNXOS */ } +#else +int +main (int argc, char **argv) +{ + printf("PACE does not support LynxOS 3.0.0.\n"); +} +#endif /* PACE_LYNXOS == 0x300 */ |