Index: /trunk/psLib/test/astronomy/tst_psTime_04.c
===================================================================
--- /trunk/psLib/test/astronomy/tst_psTime_04.c	(revision 2305)
+++ /trunk/psLib/test/astronomy/tst_psTime_04.c	(revision 2305)
@@ -0,0 +1,47 @@
+
+
+/** @file  tst_psTime_03.c
+ *
+ *  @brief Test driver for psTime functions
+ *
+ *  This test driver contains the following tests for psTime:
+ *     Test A - Add two times
+ *     Test B - Subtact two times
+ *     Test C - Delta two times
+ *     Test D - Free data
+ *
+ *  @author  Ross Harman, MHPCC
+ *
+ *  @version $Revision: 1.1 $  $Name: not supported by cvs2svn $
+ *  @date  $Date: 2004-11-09 00:43:03 $
+ *
+ *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
+ *
+ */
+
+#include "pslib.h"
+#include "psTest.h"
+
+
+int main(int argc, char* argv[])
+{
+
+    // Test A - Initialize time
+    printPositiveTestHeader(stdout, "psTime", "Test A - Initialize time");
+    bool status = true;
+    status = psTimeInit("../../config/psTime.config");
+
+    printFooter(stdout, "psTime", "Test A - Initialize time", true);
+
+    // Test D - Free data
+    printPositiveTestHeader(stdout, "psTime", "Test D - Free data");
+    psTimeFinalize();
+    psMemCheckLeaks(0, NULL, stdout);
+    psMemCheckCorruption(0);
+    int nBad = psMemCheckCorruption(0);
+    if(nBad) {
+        printf("ERROR: Found %d bad memory blocks\n", nBad);
+    }
+    printFooter(stdout, "psTime", "Test D - Free data", true);
+    return 0;
+}
