/[ascend]/trunk/test/test_globals.h
ViewVC logotype

Contents of /trunk/test/test_globals.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2528 - (show annotations) (download) (as text)
Fri Jan 20 03:57:39 2012 UTC (10 years, 6 months ago) by jpye
File MIME type: text/x-chdr
File size: 1172 byte(s)
Resolve memory leak in test_mem.c by converting test.c FilePath to a char[].
1 /* ASCEND modelling environment
2 Copyright (C) 2005 Jerry St.Clair
3 Copyright (C) 2006 Carnegie Mellon University
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19 */
20
21 /**
22 Contains the FilePath to Test directory which can later be used to locate files in the
23 ASCEND Directory in test-suites
24 FIXME Any other better means than a global variable?
25 */
26
27
28 #ifndef ASC_TEST_GLOBALS
29 #define ASC_TEST_GLOBALS
30
31 #include <ascend/general/ospath.h>
32
33 /* GLOBAL Variable to the Test Directory maintained by test/test.c */
34 char ASC_TEST_PATH[PATH_MAX];
35
36 #endif

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