summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-08-02 00:52:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-08-02 00:52:37 +0000
commitb454bc9149f2baa313976cae4fa5f7e14dac218b (patch)
tree7079d4779f4366170d332ba447645bf9fc143b4d /testsuites
parent3aa4c2e0cec61dc0673d3b0ef40a124f64d917e0 (diff)
downloadrtems-b454bc9149f2baa313976cae4fa5f7e14dac218b.tar.bz2
2002-08-01 Joel Sherrill <joel@OARcorp.com>
* Per PR47 add support for buffered test output. This involved adding defines to redirect output to a buffer and dump it when full, at "test pause", and at exit. To avoid problems when redefining exit(), all tests were modified to call rtems_test_exit(). Some tests, notable psxtests, had to be modified to include the standard test macro .h file (pmacros.h or tmacros.h) to enable this support. * include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Modified.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/tmtests/ChangeLog16
-rw-r--r--testsuites/tmtests/include/timesys.h2
-rw-r--r--testsuites/tmtests/tm01/task1.c2
-rw-r--r--testsuites/tmtests/tm02/task1.c2
-rw-r--r--testsuites/tmtests/tm03/task1.c2
-rw-r--r--testsuites/tmtests/tm04/task1.c2
-rw-r--r--testsuites/tmtests/tm05/task1.c2
-rw-r--r--testsuites/tmtests/tm06/task1.c2
-rw-r--r--testsuites/tmtests/tm07/task1.c2
-rw-r--r--testsuites/tmtests/tm08/task1.c2
-rw-r--r--testsuites/tmtests/tm09/task1.c2
-rw-r--r--testsuites/tmtests/tm10/task1.c2
-rw-r--r--testsuites/tmtests/tm11/task1.c2
-rw-r--r--testsuites/tmtests/tm12/task1.c2
-rw-r--r--testsuites/tmtests/tm13/task1.c2
-rw-r--r--testsuites/tmtests/tm14/task1.c2
-rw-r--r--testsuites/tmtests/tm15/task1.c2
-rw-r--r--testsuites/tmtests/tm16/task1.c2
-rw-r--r--testsuites/tmtests/tm17/task1.c2
-rw-r--r--testsuites/tmtests/tm18/task1.c2
-rw-r--r--testsuites/tmtests/tm19/task1.c2
-rw-r--r--testsuites/tmtests/tm20/task1.c2
-rw-r--r--testsuites/tmtests/tm21/task1.c2
-rw-r--r--testsuites/tmtests/tm22/task1.c2
-rw-r--r--testsuites/tmtests/tm23/task1.c2
-rw-r--r--testsuites/tmtests/tm24/task1.c2
-rw-r--r--testsuites/tmtests/tm25/task1.c2
-rw-r--r--testsuites/tmtests/tm26/task1.c2
-rw-r--r--testsuites/tmtests/tm27/task1.c2
-rw-r--r--testsuites/tmtests/tm28/task1.c2
-rw-r--r--testsuites/tmtests/tm29/task1.c2
-rw-r--r--testsuites/tmtests/tmck/task1.c4
-rw-r--r--testsuites/tmtests/tmoverhd/testtask.c2
33 files changed, 49 insertions, 33 deletions
diff --git a/testsuites/tmtests/ChangeLog b/testsuites/tmtests/ChangeLog
index a96bc0f6f1..785f7819ba 100644
--- a/testsuites/tmtests/ChangeLog
+++ b/testsuites/tmtests/ChangeLog
@@ -1,3 +1,19 @@
+2002-08-01 Joel Sherrill <joel@OARcorp.com>
+
+ * Per PR47 add support for buffered test output. This involved
+ adding defines to redirect output to a buffer and dump it when
+ full, at "test pause", and at exit. To avoid problems when redefining
+ exit(), all tests were modified to call rtems_test_exit().
+ Some tests, notable psxtests, had to be modified to include
+ the standard test macro .h file (pmacros.h or tmacros.h) to
+ enable this support.
+ * include/timesys.h, tm01/task1.c, tm02/task1.c, tm03/task1.c,
+ tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c,
+ tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c,
+ tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c,
+ tm19/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c,
+ tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c,
+ tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Modified.
2002-04-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove ENABLE_GCC28.
diff --git a/testsuites/tmtests/include/timesys.h b/testsuites/tmtests/include/timesys.h
index 5c21ae5d68..b2b6ac870f 100644
--- a/testsuites/tmtests/include/timesys.h
+++ b/testsuites/tmtests/include/timesys.h
@@ -35,7 +35,7 @@
#define put_time( _message, _total_time, \
_iterations, _loop_overhead, _overhead ) \
- fprintf( stderr, \
+ printf( \
"%s %d\n", \
(_message), \
(((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \
diff --git a/testsuites/tmtests/tm01/task1.c b/testsuites/tmtests/tm01/task1.c
index 525f2f69d1..3912b5ad91 100644
--- a/testsuites/tmtests/tm01/task1.c
+++ b/testsuites/tmtests/tm01/task1.c
@@ -184,5 +184,5 @@ rtems_task Test_task(
);
puts( "*** END OF TEST 1 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm02/task1.c b/testsuites/tmtests/tm02/task1.c
index a4c6544d24..d24e1cb765 100644
--- a/testsuites/tmtests/tm02/task1.c
+++ b/testsuites/tmtests/tm02/task1.c
@@ -153,5 +153,5 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 2 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm03/task1.c b/testsuites/tmtests/tm03/task1.c
index 92ee59092b..e7df26fce8 100644
--- a/testsuites/tmtests/tm03/task1.c
+++ b/testsuites/tmtests/tm03/task1.c
@@ -146,5 +146,5 @@ rtems_task High_task(
);
puts( "*** END OF TEST 3 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm04/task1.c b/testsuites/tmtests/tm04/task1.c
index 648828ebe1..8a6b27f4f6 100644
--- a/testsuites/tmtests/tm04/task1.c
+++ b/testsuites/tmtests/tm04/task1.c
@@ -327,7 +327,7 @@ rtems_task High_task(
);
puts( "*** END OF TEST 4 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Low_tasks(
diff --git a/testsuites/tmtests/tm05/task1.c b/testsuites/tmtests/tm05/task1.c
index a942d35b33..291a68a514 100644
--- a/testsuites/tmtests/tm05/task1.c
+++ b/testsuites/tmtests/tm05/task1.c
@@ -97,7 +97,7 @@ rtems_task High_task(
);
puts( "*** END OF TEST 5 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Middle_tasks(
diff --git a/testsuites/tmtests/tm06/task1.c b/testsuites/tmtests/tm06/task1.c
index 3892044021..562605820b 100644
--- a/testsuites/tmtests/tm06/task1.c
+++ b/testsuites/tmtests/tm06/task1.c
@@ -149,7 +149,7 @@ rtems_task Task_1(
);
puts( "*** END OF TEST 6 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task null_task(
diff --git a/testsuites/tmtests/tm07/task1.c b/testsuites/tmtests/tm07/task1.c
index 08364c522e..6895e0ab97 100644
--- a/testsuites/tmtests/tm07/task1.c
+++ b/testsuites/tmtests/tm07/task1.c
@@ -93,7 +93,7 @@ rtems_task High_task(
(void) rtems_task_suspend( RTEMS_SELF );
puts( "*** END OF TEST 7 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Middle_tasks(
diff --git a/testsuites/tmtests/tm08/task1.c b/testsuites/tmtests/tm08/task1.c
index b78b375b59..9cf06d7595 100644
--- a/testsuites/tmtests/tm08/task1.c
+++ b/testsuites/tmtests/tm08/task1.c
@@ -233,7 +233,7 @@ rtems_task test_task(
);
puts( "*** END OF TEST 8 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task test_task1(
diff --git a/testsuites/tmtests/tm09/task1.c b/testsuites/tmtests/tm09/task1.c
index 34ce8b5a11..56a41ff1a7 100644
--- a/testsuites/tmtests/tm09/task1.c
+++ b/testsuites/tmtests/tm09/task1.c
@@ -86,7 +86,7 @@ rtems_task Test_task (
);
puts( "*** END OF TEST 9 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
void queue_test()
diff --git a/testsuites/tmtests/tm10/task1.c b/testsuites/tmtests/tm10/task1.c
index 4a24d34db3..913579d1be 100644
--- a/testsuites/tmtests/tm10/task1.c
+++ b/testsuites/tmtests/tm10/task1.c
@@ -160,5 +160,5 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 10 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm11/task1.c b/testsuites/tmtests/tm11/task1.c
index 0ff58e4c87..96bd31a6a0 100644
--- a/testsuites/tmtests/tm11/task1.c
+++ b/testsuites/tmtests/tm11/task1.c
@@ -152,5 +152,5 @@ rtems_task High_task(
);
puts( "*** END OF TEST 11 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm12/task1.c b/testsuites/tmtests/tm12/task1.c
index 5b67e59a19..17a48ec253 100644
--- a/testsuites/tmtests/tm12/task1.c
+++ b/testsuites/tmtests/tm12/task1.c
@@ -127,7 +127,7 @@ rtems_task High_task(
);
puts( "*** END OF TEST 12 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Low_tasks(
diff --git a/testsuites/tmtests/tm13/task1.c b/testsuites/tmtests/tm13/task1.c
index 0b2afc8571..4e5de1cbc0 100644
--- a/testsuites/tmtests/tm13/task1.c
+++ b/testsuites/tmtests/tm13/task1.c
@@ -151,5 +151,5 @@ rtems_task High_task(
);
puts( "*** END OF TEST 13 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm14/task1.c b/testsuites/tmtests/tm14/task1.c
index c368ca15be..89e8db1af0 100644
--- a/testsuites/tmtests/tm14/task1.c
+++ b/testsuites/tmtests/tm14/task1.c
@@ -127,7 +127,7 @@ rtems_task High_task(
);
puts( "*** END OF TEST 14 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Low_tasks(
diff --git a/testsuites/tmtests/tm15/task1.c b/testsuites/tmtests/tm15/task1.c
index bd20002697..800eda7dd7 100644
--- a/testsuites/tmtests/tm15/task1.c
+++ b/testsuites/tmtests/tm15/task1.c
@@ -192,7 +192,7 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 15 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task High_tasks(
diff --git a/testsuites/tmtests/tm16/task1.c b/testsuites/tmtests/tm16/task1.c
index f4c1f1b5cd..0991c11052 100644
--- a/testsuites/tmtests/tm16/task1.c
+++ b/testsuites/tmtests/tm16/task1.c
@@ -143,5 +143,5 @@ rtems_task High_task(
);
puts( "*** END OF TEST 16 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm17/task1.c b/testsuites/tmtests/tm17/task1.c
index f510bbd320..579fa03499 100644
--- a/testsuites/tmtests/tm17/task1.c
+++ b/testsuites/tmtests/tm17/task1.c
@@ -122,5 +122,5 @@ rtems_task Last_task(
);
puts( "*** END OF TEST 17 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm18/task1.c b/testsuites/tmtests/tm18/task1.c
index d4c132495a..a43066c772 100644
--- a/testsuites/tmtests/tm18/task1.c
+++ b/testsuites/tmtests/tm18/task1.c
@@ -107,5 +107,5 @@ rtems_task Last_task(
);
puts( "*** END OF TEST 18 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm19/task1.c b/testsuites/tmtests/tm19/task1.c
index 496f69c3e0..629a582b4b 100644
--- a/testsuites/tmtests/tm19/task1.c
+++ b/testsuites/tmtests/tm19/task1.c
@@ -203,5 +203,5 @@ rtems_task Task_3(
);
puts( "*** END OF TEST 19 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm20/task1.c b/testsuites/tmtests/tm20/task1.c
index 34247ead95..d2e95f8a4c 100644
--- a/testsuites/tmtests/tm20/task1.c
+++ b/testsuites/tmtests/tm20/task1.c
@@ -432,7 +432,7 @@ rtems_task Task_1(
);
puts( "*** END OF TEST 20 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Task_2(
diff --git a/testsuites/tmtests/tm21/task1.c b/testsuites/tmtests/tm21/task1.c
index 42591316f3..08925e52c0 100644
--- a/testsuites/tmtests/tm21/task1.c
+++ b/testsuites/tmtests/tm21/task1.c
@@ -233,5 +233,5 @@ rtems_task Task_1(
);
puts( "*** END OF TEST 21 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm22/task1.c b/testsuites/tmtests/tm22/task1.c
index 3abb4cd22d..9416580fba 100644
--- a/testsuites/tmtests/tm22/task1.c
+++ b/testsuites/tmtests/tm22/task1.c
@@ -180,7 +180,7 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 22 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
rtems_task Preempt_task(
diff --git a/testsuites/tmtests/tm23/task1.c b/testsuites/tmtests/tm23/task1.c
index 0104893026..8d630a055b 100644
--- a/testsuites/tmtests/tm23/task1.c
+++ b/testsuites/tmtests/tm23/task1.c
@@ -297,5 +297,5 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 23 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm24/task1.c b/testsuites/tmtests/tm24/task1.c
index 1fbabdbbba..a0d6bee9ed 100644
--- a/testsuites/tmtests/tm24/task1.c
+++ b/testsuites/tmtests/tm24/task1.c
@@ -117,7 +117,7 @@ rtems_task Tasks(
);
puts( "*** END OF TEST 24 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
(void) rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
}
diff --git a/testsuites/tmtests/tm25/task1.c b/testsuites/tmtests/tm25/task1.c
index ffedf1501f..c456c6e778 100644
--- a/testsuites/tmtests/tm25/task1.c
+++ b/testsuites/tmtests/tm25/task1.c
@@ -104,5 +104,5 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 25 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm26/task1.c b/testsuites/tmtests/tm26/task1.c
index b660b36b21..23dd41d47c 100644
--- a/testsuites/tmtests/tm26/task1.c
+++ b/testsuites/tmtests/tm26/task1.c
@@ -589,6 +589,6 @@ void complete_test( void )
);
puts( "*** END OF TEST 26 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm27/task1.c b/testsuites/tmtests/tm27/task1.c
index 22272d79aa..e1bc7944f9 100644
--- a/testsuites/tmtests/tm27/task1.c
+++ b/testsuites/tmtests/tm27/task1.c
@@ -179,7 +179,7 @@ rtems_task Task_1(
*/
puts( "*** END OF TEST 27 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
/*
diff --git a/testsuites/tmtests/tm28/task1.c b/testsuites/tmtests/tm28/task1.c
index ee1f173fb3..b665efcf1c 100644
--- a/testsuites/tmtests/tm28/task1.c
+++ b/testsuites/tmtests/tm28/task1.c
@@ -129,5 +129,5 @@ rtems_task Test_task (
);
puts( "*** END OF TEST 28 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tm29/task1.c b/testsuites/tmtests/tm29/task1.c
index f7d94898a4..ecb61d0267 100644
--- a/testsuites/tmtests/tm29/task1.c
+++ b/testsuites/tmtests/tm29/task1.c
@@ -202,5 +202,5 @@ rtems_task Low_task(
);
puts( "*** END OF TEST 29 ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
diff --git a/testsuites/tmtests/tmck/task1.c b/testsuites/tmtests/tmck/task1.c
index 458c51395d..4234a32b71 100644
--- a/testsuites/tmtests/tmck/task1.c
+++ b/testsuites/tmtests/tmck/task1.c
@@ -136,7 +136,7 @@ rtems_test_pause();
);
puts( "*** END OF TIME CHECKER ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}
void check_read_timer()
@@ -160,7 +160,7 @@ void check_read_timer()
index--;
continue;
#else
- exit( 1 );
+ rtems_test_exit( 1 );
#endif
}
else
diff --git a/testsuites/tmtests/tmoverhd/testtask.c b/testsuites/tmtests/tmoverhd/testtask.c
index 30f9c3aee1..21fa59a4bd 100644
--- a/testsuites/tmtests/tmoverhd/testtask.c
+++ b/testsuites/tmtests/tmoverhd/testtask.c
@@ -1274,5 +1274,5 @@ rtems_test_pause();
puts( "*** END OF TIME OVERHEAD ***" );
- exit( 0 );
+ rtems_test_exit( 0 );
}