Index: /trunk/psLib/test/image/tst_psImageFFT.c
===================================================================
--- /trunk/psLib/test/image/tst_psImageFFT.c	(revision 1978)
+++ /trunk/psLib/test/image/tst_psImageFFT.c	(revision 1979)
@@ -6,6 +6,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-11 02:27:20 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-06 19:36:30 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -68,4 +68,6 @@
     unsigned int m = 128;
     unsigned int n = 64;
+    psImage* img4 = NULL;
+    psImage* img5 = NULL;
 
     /*
@@ -128,4 +130,45 @@
     }
 
+    /* Verify return null and program execution doesn't stop if input image is null */
+    img4 = psImageFFT(NULL,NULL,PS_FFT_FORWARD);
+    if (img4 != NULL ) {
+        psError(__func__,"psImageFFT should return null for a null input image.");
+        return 10;
+    }
+
+    /* Verify return null and program execution doesn't stop if input image is invalid type */
+    GENIMAGE(img4,8,8,S8,row+col);
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for invalid input image type.");
+    img5 = psImageFFT(NULL,img4,PS_FFT_FORWARD);
+    if (img5 != NULL) {
+        psError(__func__,"psImageFFT should return null for an invalid type image.");
+        return 11;
+    }
+    psFree(img4);
+
+    /* Verify return null and program execution doesn't stop if input image F32 but
+       reverse FFT operation specified.
+    */
+    GENIMAGE(img4,8,8,F32,row+col);
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for F32 reverse FFT operation.");
+    img5 = psImageFFT(NULL,img4,PS_FFT_REVERSE);
+    if (img5 != NULL) {
+        psError(__func__,"psImageFFT should return null for F32 input with reverse FFT operation.");
+        return 12;
+    }
+    psFree(img4);
+
+    /* Verify return null and program execution doesn't stop if input image C32 but
+       forward FFT operation specified.
+    */
+    GENIMAGE(img4,8,8,C32,row+col);
+    psLogMsg(__func__,PS_LOG_INFO,"Following should generate error for C32 forward FFT operation.");
+    img5 = psImageFFT(NULL,img4,PS_FFT_FORWARD);
+    if (img5 != NULL) {
+        psError(__func__,"psImageFFT should return null for C32 input with forward FFT operation.");
+        return 13;
+    }
+    psFree(img4);
+
     psFree(img);
     psFree(img2);
Index: /trunk/psLib/test/image/verified/tst_psImageFFT.stderr
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageFFT.stderr	(revision 1978)
+++ /trunk/psLib/test/image/verified/tst_psImageFFT.stderr	(revision 1979)
@@ -5,4 +5,16 @@
 \**********************************************************************************/
 
+<DATE><TIME>|<HOST>|I|testImageFFT
+    Following should generate error for invalid input image type.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageFFT
+    Input psImage type (psS8) is not supported. Valid image types are psF32 and psC32.
+<DATE><TIME>|<HOST>|I|testImageFFT
+    Following should generate error for F32 reverse FFT operation.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageFFT
+    Input psImage (psF32) is not complex.  Reverse FFT operation requires a complex psImage input.
+<DATE><TIME>|<HOST>|I|testImageFFT
+    Following should generate error for C32 forward FFT operation.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageFFT
+    Input psImage (psC32) is not real.  Forward FFT operation requires a real psImage input.
 
 ---> TESTPOINT PASSED (psFFT{psImageFFT} | tst_psImageFFT.c)
