Skip to content

Commit c0dcc76

Browse files
committed
Backed out 18 changesets (bug 1313469, bug 1313468, bug 1313474, bug 1313472, bug 1313473, bug 1313470, bug 1313471, bug 1313467, bug 1313466) for OS X gtest crashes
CLOSED TREE Backed out changeset 5b5686e1bcd1 (bug 1313474) Backed out changeset e8d20bdd13d4 (bug 1313473) Backed out changeset 643bdd25166e (bug 1313473) Backed out changeset 9a33c84ab30a (bug 1313472) Backed out changeset 4d84926813e9 (bug 1313472) Backed out changeset c85e7a7a5a99 (bug 1313471) Backed out changeset 5d82bc9436ab (bug 1313471) Backed out changeset 00f7b342bb29 (bug 1313470) Backed out changeset f012923cfd8b (bug 1313470) Backed out changeset e7d5b8135ae6 (bug 1313470) Backed out changeset 82bf00ff6505 (bug 1313469) Backed out changeset 5364fc8db9b0 (bug 1313469) Backed out changeset 02959aa60196 (bug 1313468) Backed out changeset 3c25a6ed5914 (bug 1313467) Backed out changeset 0acc0a131101 (bug 1313467) Backed out changeset 6fae1bbd3819 (bug 1313467) Backed out changeset 107eb264a40d (bug 1313467) Backed out changeset 9b60e295a885 (bug 1313466) MozReview-Commit-ID: IKsAZxBYMfv --HG-- rename : xpcom/tests/gtest/TestAutoPtr.cpp => xpcom/tests/TestAutoPtr.cpp rename : xpcom/tests/gtest/TestAutoRef.cpp => xpcom/tests/TestAutoRef.cpp rename : xpcom/tests/gtest/TestCOMArray.cpp => xpcom/tests/TestCOMArray.cpp rename : xpcom/tests/gtest/TestCOMPtr.cpp => xpcom/tests/TestCOMPtr.cpp rename : xpcom/tests/gtest/TestCOMPtrEq.cpp => xpcom/tests/TestCOMPtrEq.cpp rename : xpcom/tests/gtest/TestFile.cpp => xpcom/tests/TestFile.cpp rename : xpcom/tests/gtest/TestHashtables.cpp => xpcom/tests/TestHashtables.cpp rename : xpcom/tests/gtest/TestID.cpp => xpcom/tests/TestID.cpp
1 parent 44d4420 commit c0dcc76

21 files changed

+2461
-1607
lines changed

testing/cppunittest.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[ShowAlignments]
12
[ShowSSEConfig]
23
[TestAppShellSteadyState]
34
[TestArray]
@@ -6,11 +7,16 @@
67
[TestAudioBuffers]
78
skip-if = os == 'b2g' # Bug 1062937
89
[TestAudioMixer]
10+
[TestAutoPtr]
11+
[TestAutoRef]
912
[TestBinarySearch]
1013
[TestBind]
1114
[TestBloomFilter]
1215
[TestCOM]
1316
skip-if = os != 'win'
17+
[TestCOMArray]
18+
[TestCOMPtr]
19+
[TestCOMPtrEq]
1420
[TestCSPParser]
1521
skip-if = os == 'b2g' || (os == 'android' && debug) # Bug 1054246
1622
[TestCasting]
@@ -30,9 +36,12 @@ skip-if = os != 'win'
3036
[TestEnumSet]
3137
[TestEnumTypeTraits]
3238
[TestFastBernoulliTrial]
39+
[TestFile]
3340
[TestFloatingPoint]
3441
[TestFunction]
3542
[TestGetURL]
43+
[TestHashtables]
44+
[TestID]
3645
[TestIntegerPrintfMacros]
3746
[TestIntegerRange]
3847
[TestIsCertBuiltInRoot]

xpcom/tests/ShowAlignments.cpp

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
2+
/* This Source Code Form is subject to the terms of the Mozilla Public
3+
* License, v. 2.0. If a copy of the MPL was not distributed with this
4+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5+
6+
/* show the size and alignment requirements of various types */
7+
8+
#include "nsMemory.h"
9+
#include <stdio.h>
10+
11+
struct S {
12+
double d;
13+
char c;
14+
short s;
15+
};
16+
17+
int main()
18+
{
19+
static const char str[] =
20+
"Type %s has size %u and alignment requirement %u\n";
21+
#define SHOW_TYPE(t_) \
22+
printf(str, #t_, unsigned(sizeof(t_)), unsigned(NS_ALIGNMENT_OF(t_)))
23+
24+
SHOW_TYPE(char);
25+
SHOW_TYPE(unsigned short);
26+
SHOW_TYPE(int);
27+
SHOW_TYPE(long);
28+
SHOW_TYPE(uint8_t);
29+
SHOW_TYPE(int16_t);
30+
SHOW_TYPE(uint32_t);
31+
SHOW_TYPE(void*);
32+
SHOW_TYPE(double);
33+
SHOW_TYPE(short[7]);
34+
SHOW_TYPE(S);
35+
SHOW_TYPE(double S::*);
36+
37+
return 0;
38+
}

0 commit comments

Comments
 (0)