From 1d780192efb77f8f9bd4c30b693d4bd8cfa9af47 Mon Sep 17 00:00:00 2001 From: Graham Fagg Date: Thu, 12 Aug 2004 23:03:39 +0000 Subject: [PATCH] Added test_comment() that prints user string to STDOUT unlike test_* which print to STDERR. Used for more verbose test results when needed. This commit was SVN r2096. --- test/support/support.c | 7 +++++++ test/support/support.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/test/support/support.c b/test/support/support.c index 67bb41c8ad..da62b4d1a1 100644 --- a/test/support/support.c +++ b/test/support/support.c @@ -120,3 +120,10 @@ int test_finalize(void) return return_value; } + + +/* note this is for additional output that does NOT go to STDERR but STDOUT */ +void test_comment (char* userstr) +{ + fprintf(stdout, "%s:%s\n", ompi_description, userstr); +} diff --git a/test/support/support.h b/test/support/support.h index a79e4c0718..73b3ff4464 100644 --- a/test/support/support.h +++ b/test/support/support.h @@ -18,6 +18,8 @@ void test_failure(char *a); int test_verify_str(const char *expected_result, const char *test_result); int test_verify_int(int expected_result, int test_result); int test_finalize(void); +void test_comment (char* userstr); + /*