Bug 461199 followup: Fix build warning "ISO C++ does not support the 'z' printf length modifier". rs=sdwilsh

This commit is contained in:
Daniel Holbert 2010-02-25 10:20:43 -08:00
Родитель 706fd07eda
Коммит 0b8512ee0a
1 изменённых файлов: 3 добавлений и 9 удалений

Просмотреть файл

@ -45,13 +45,7 @@
#error "Must #define TEST_FILE before include places_test_harness_tail.h"
#endif
size_t gTestsIndex = 0;
#ifdef XP_WIN
#define SIZE_T "%Iu"
#else
#define SIZE_T "%zu"
#endif
int gTestsIndex = 0;
#define TEST_INFO_STR "TEST-INFO | (%s) | "
@ -81,7 +75,7 @@ run_next_test()
do_check_success(NS_DispatchToCurrentThread(event));
}
size_t gPendingTests = 0;
int gPendingTests = 0;
void
do_test_pending()
@ -120,7 +114,7 @@ main(int aArgc,
passed(TEST_FILE);
}
(void)fprintf(stderr, TEST_INFO_STR SIZE_T " of " SIZE_T " tests passed\n",
(void)fprintf(stderr, TEST_INFO_STR "%d of %d tests passed\n",
TEST_FILE, gPassedTests, gTotalTests);
return gPassedTests == gTotalTests ? 0 : -1;