Some more tests (minor)
[gnash.git] / testsuite / misc-swfc.all / check.sc
blobd847fbf0621b16727b6a9199d2dc602ce5d65c5b
1 // check.as - Include file for SWFC testcases providing common testing facilities
2 //
3 //   Copyright (C) 2005, 2006, 2007, 2009, 2010 Free Software
4 //   Foundation, Inc
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 // Original author: David Rorex - drorex@gmail.com
24 #ifndef _CHECK_AS_
25 #define _CHECK_AS_
27 #define _INFO_ ' ['+__FILE__+':'+__LINE__+']'
29 #define check_equals(a, b) Dejagnu.check_equals(a, b, _INFO_, #a);
30 //#define check_equals(a, b, msg) Dejagnu.check(a, b, msg + _INFO_);
32 #define xcheck_equals(a, b) Dejagnu.xcheck_equals(a, b, _INFO_, #a);
33 //#define xcheck_equals(a, b, msg) Dejagnu.check(a, b, msg + _INFO_);
35 #define check(a) Dejagnu.check(a, _INFO_);
36 #define xcheck(a) Dejagnu.xcheck(a, _INFO_);
38 #define pass(text) Dejagnu.pass(text + _INFO_)
39 #define xpass(text) Dejagnu.xpass(text + _INFO_)
40 #define fail(text) Dejagnu.fail(text + _INFO_)
41 #define xfail(text) Dejagnu.xfail(text + _INFO_)
42 #define pass(text) Dejagnu.pass(text + _INFO_)
43 #define untested(text) Dejagnu.untested(text + _INFO_)
44 #define unresolved(text) Dejagnu.unresolved(text + _INFO_)
46 #define note(text) Dejagnu.note(text + _INFO_);
48 #define totals(x) Dejagnu.totals(x, _INFO_)
50 #define xtotals(x) Dejagnu.xtotals(x, _INFO_)
52 #define _QUOTEME(x) #x
53 #define QUOTEME(x) _QUOTEME(x)
54 #define MEDIA(x) QUOTEME(MEDIADIR/x)
56 #endif