/[ascend]/trunk/base/generic/utilities/test/test_ascPanic.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/test/test_ascPanic.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 927 by johnpye, Fri Mar 31 08:52:57 2006 UTC revision 928 by johnpye, Wed Nov 22 10:32:18 2006 UTC
# Line 28  Line 28 
28  #endif  #endif
29  #include <utilities/ascMalloc.h>  #include <utilities/ascMalloc.h>
30  #include <utilities/ascPanic.h>  #include <utilities/ascPanic.h>
31  #include <compiler/redirectFile.h>  /* #include <compiler/redirectFile.h> */
32  #include "CUnit/CUnit.h"  #include "CUnit/CUnit.h"
33  #include "test_ascPanic.h"  #include "test_ascPanic.h"
34  #include "assertimpl.h"  #include "assertimpl.h"
# Line 38  static int f_callback_called = FALSE; Line 38  static int f_callback_called = FALSE;
38  static int f_callback_status;  static int f_callback_status;
39    
40  /*  /*
41        These tests have been disabled as the stream redirection in ASCEND is
42        starting to be a bit crazy: error.c --> ascPrint.h --> redirectFile.h
43        as well as printutil.c and redirectStdStreams.c. Will set this test to
44        failing and we'll come back and reimplement this later.
45    */
46    
47    static void test_ascPanic(void){
48        CU_FAIL("test_ascPanic needs to be reimplemented");
49    }
50    
51    #ifdef REIMPLEMENT_STREAMS
52    
53    /*
54   *  Callback function for Asc_Panic() during testing.   *  Callback function for Asc_Panic() during testing.
55   *  Sets a flag, then returns non-zero so program continues.   *  Sets a flag, then returns non-zero so program continues.
56   */   */
# Line 171  static void test_ascPanic(void) Line 184  static void test_ascPanic(void)
184    Asc_RedirectCompilerStreams(old_errfile, old_warnfile, old_infofile); /* restore streams */    Asc_RedirectCompilerStreams(old_errfile, old_warnfile, old_infofile); /* restore streams */
185    CU_TEST(prior_meminuse == ascmeminuse());   /* make sure we cleaned up after ourselves */    CU_TEST(prior_meminuse == ascmeminuse());   /* make sure we cleaned up after ourselves */
186  }  }
187    #endif /* REIMPLEMENT_STREAMS */
188    
189  /*===========================================================================*/  /*===========================================================================*/
190  /* Registration information */  /* Registration information */

Legend:
Removed from v.927  
changed lines
  Added in v.928

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22