~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to include/wx/cppunit.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
// Purpose:     wrapper header for CppUnit headers
4
4
// Author:      Vadim Zeitlin
5
5
// Created:     15.02.04
6
 
// RCS-ID:      $Id: cppunit.h,v 1.8 2006/09/16 08:01:17 MW Exp $
 
6
// RCS-ID:      $Id: cppunit.h 49019 2007-10-02 14:56:53Z MW $
7
7
// Copyright:   (c) 2004 Vadim Zeitlin
8
8
// Licence:     wxWindows Licence
9
9
/////////////////////////////////////////////////////////////////////////////
28
28
#ifdef __BORLANDC__
29
29
    #pragma warn -8022
30
30
#endif
31
 
 
 
31
 
 
32
#ifndef CPPUNIT_STD_NEED_ALLOCATOR
 
33
    #define CPPUNIT_STD_NEED_ALLOCATOR 0
 
34
#endif
 
35
 
32
36
///////////////////////////////////////////////////////////////////////////////
33
37
// Set the default format for the errors, which can be used by an IDE to jump
34
38
// to the error location. This default gets overridden by the cppunit headers
35
39
// for some compilers (e.g. VC++).
36
40
 
37
 
#ifndef CPPUNIT_COMPILER_LOCATION_FORMAT 
 
41
#ifndef CPPUNIT_COMPILER_LOCATION_FORMAT
38
42
    #define CPPUNIT_COMPILER_LOCATION_FORMAT "%p:%l:"
39
43
#endif
40
44
 
77
81
#define WXTEST_FAIL_WITH_CONDITION(suiteName, Condition, testMethod) \
78
82
    WXTEST_ANY_WITH_CONDITION(suiteName, Condition, testMethod, CPPUNIT_TEST_FAIL(testMethod))
79
83
 
 
84
// Use this macro to compare a wxString with a literal string.
 
85
#define WX_ASSERT_STR_EQUAL(p, s) CPPUNIT_ASSERT_EQUAL(wxString(p), s)
 
86
 
 
87
// Use this macro to compare a size_t with a literal integer
 
88
#define WX_ASSERT_SIZET_EQUAL(n, m) CPPUNIT_ASSERT_EQUAL(((size_t)n), m)
 
89
 
80
90
 
81
91
///////////////////////////////////////////////////////////////////////////////
82
92
// stream inserter for wxString