dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. a80673021cfbf67c4ea609b7f17441e8ac80c565
Date: Thu, 29 Oct 2009 08:49:45 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  a80673021cfbf67c4ea609b7f17441e8ac80c565 (commit)
      from  6761fd0413f387a4f7be6bc9dd9646421b9befab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=a80673021cfbf67c4ea609b7f17441e8ac80c565

commit a80673021cfbf67c4ea609b7f17441e8ac80c565
Author: Klaus Treichel <address@hidden>
Date:   Thu Oct 29 09:49:16 2009 +0100

    Add test cleanup function in ILUnit

diff --git a/ChangeLog b/ChangeLog
index 2b4f0aa..c9a6774 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-10-29  Klaus Treichel  <address@hidden>
+
+       * tests/ilunit.h: Add prototype for test cleanup function
+       ILUnitCleanupTests.
+
+       * tests/ilunit.c (main): Call ILUnitCleanupTests after tests finished.
+
+       * tests/test_crypt.c, tests/test_thread.c : Add ILUnitCleanupTests.
+
 2009-10-28  Klaus Treichel  <address@hidden>
 
        * support/interlocked.h, support/interlocked_any.h,
diff --git a/tests/ilunit.c b/tests/ilunit.c
index c329c83..56a9f2a 100644
--- a/tests/ilunit.c
+++ b/tests/ilunit.c
@@ -190,6 +190,9 @@ int main(int argc, char *argv[])
                runAllTests();
        }
 
+       /* Cleanup the tests */
+       ILUnitCleanupTests();
+
        /* Print a summary of how many tests succeeded or failed */
        if(!showOnlyFailed || numFailed != 0)
        {
diff --git a/tests/ilunit.h b/tests/ilunit.h
index 2478cf3..76d06a2 100644
--- a/tests/ilunit.h
+++ b/tests/ilunit.h
@@ -55,6 +55,12 @@ void ILUnitRegister(const char *name, ILUnitTestFunc func, 
void *arg);
 void ILUnitRegisterTests(void);
 
 /*
+ * User-supplied function that performs some cleanup after running the
+ * requested tests.
+ */
+void ILUnitCleanupTests(void);
+
+/*
  * Report a test failure with the simple "failed" message
  * and then abort the test.
  */
diff --git a/tests/test_crypt.c b/tests/test_crypt.c
index 7347155..5bd471b 100644
--- a/tests/test_crypt.c
+++ b/tests/test_crypt.c
@@ -1269,6 +1269,13 @@ void ILUnitRegisterTests(void)
        RegisterCrypt(test_bignum_oper, bignum_pow_4);
 }
 
+void ILUnitCleanupTests(void)
+{
+       /*
+        * Nothing to do here.
+        */
+}
+
 #ifdef __cplusplus
 };
 #endif
diff --git a/tests/test_thread.c b/tests/test_thread.c
index b1c394f..9beb186 100755
--- a/tests/test_thread.c
+++ b/tests/test_thread.c
@@ -3335,6 +3335,14 @@ void ILUnitRegisterTests(void)
        RegisterSimple(monitor_timed_wait1);
 }
 
+void ILUnitCleanupTests(void)
+{
+       /*
+        * Deinitialize the threading subsystem.
+        */
+       ILThreadDeinit();
+}
+
 #ifdef __cplusplus
 };
 #endif

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    9 +++++++++
 tests/ilunit.c      |    3 +++
 tests/ilunit.h      |    6 ++++++
 tests/test_crypt.c  |    7 +++++++
 tests/test_thread.c |    8 ++++++++
 5 files changed, 33 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]