~ubuntu-branches/ubuntu/gutsy/icu/gutsy

« back to all changes in this revision

Viewing changes to source/test/intltest/tztest.cpp

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2005-05-21 22:44:31 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: package-import@ubuntu.com-20050521224431-r7rktfhnu1n4tf1g
Tags: 2.1-2.1
Rename icu-doc to icu21-doc. icu-doc is built by the icu28 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include "unicode/resbund.h"
12
12
#include "tztest.h"
13
13
 
14
 
#define CHECK_HEAP 0
15
 
 
16
 
#if defined(_WIN32) && !defined(__WINDOWS__)
17
 
#define _CRTDBG_MAP_ALLOC
18
 
#include <crtdbg.h>
19
 
#endif
20
 
 
21
14
#define CASE(id,test) case id:                               \
22
15
                          name = #test;                      \
23
16
                          if (exec) {                        \
288
281
void
289
282
TimeZoneTest::TestGetAvailableIDs913()
290
283
{
291
 
#if defined(_WIN32) && !defined(__WINDOWS__)
292
 
#if defined(WIN32) && defined(_DEBUG) && CHECK_HEAP
293
 
    /*
294
 
     * Set the debug-heap flag to keep freed blocks in the
295
 
     * heap's linked list - This will allow us to catch any
296
 
     * inadvertent use of freed memory
297
 
     */
298
 
    int32_t tmpDbgFlag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
299
 
    tmpDbgFlag |= _CRTDBG_DELAY_FREE_MEM_DF;
300
 
    tmpDbgFlag |= _CRTDBG_LEAK_CHECK_DF;
301
 
    tmpDbgFlag |= _CRTDBG_CHECK_ALWAYS_DF;
302
 
    _CrtSetDbgFlag(tmpDbgFlag);
303
 
 
304
 
    _CrtMemState memstate;
305
 
    _CrtMemCheckpoint(&memstate);
306
 
    {
307
 
#endif
308
 
#endif
309
 
 
310
284
    UnicodeString str;
311
285
    UnicodeString *buf = new UnicodeString("TimeZone.getAvailableIDs() = { ");
312
286
    int32_t s_length;