Bug 1313466 - Remove XPCOM test ShowAlignments. r=froydnj
authorEric Rahm <erahm@mozilla.com>
Fri, 04 Nov 2016 11:13:25 -0700
changeset 347745 0ec781cda9d811212d2cda5e04ae3d67a872ea46
parent 347744 40f84048af16b07dae9fa10f7bfb50daffb7a38f
child 347746 7abe65a85676c0f538b6871fee5ecc3ee3a17cba
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1313466
milestone52.0a1
Bug 1313466 - Remove XPCOM test ShowAlignments. r=froydnj MozReview-Commit-ID: 9FpMhw2MsjH
testing/cppunittest.ini
xpcom/tests/ShowAlignments.cpp
xpcom/tests/moz.build
--- a/testing/cppunittest.ini
+++ b/testing/cppunittest.ini
@@ -1,9 +1,8 @@
-[ShowAlignments]
 [ShowSSEConfig]
 [TestAppShellSteadyState]
 [TestArray]
 [TestArrayUtils]
 [TestAtomics]
 [TestAudioBuffers]
 skip-if = os == 'b2g'  # Bug 1062937
 [TestAudioMixer]
deleted file mode 100644
--- a/xpcom/tests/ShowAlignments.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/* vim: set shiftwidth=2 tabstop=8 autoindent cindent expandtab: */
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-/* show the size and alignment requirements of various types */
-
-#include "nsMemory.h"
-#include <stdio.h>
-
-struct S {
-  double d;
-  char c;
-  short s;
-};
-
-int main()
-{
-  static const char str[] =
-    "Type %s has size %u and alignment requirement %u\n";
-  #define SHOW_TYPE(t_) \
-    printf(str, #t_, unsigned(sizeof(t_)), unsigned(NS_ALIGNMENT_OF(t_)))
-
-  SHOW_TYPE(char);
-  SHOW_TYPE(unsigned short);
-  SHOW_TYPE(int);
-  SHOW_TYPE(long);
-  SHOW_TYPE(uint8_t);
-  SHOW_TYPE(int16_t);
-  SHOW_TYPE(uint32_t);
-  SHOW_TYPE(void*);
-  SHOW_TYPE(double);
-  SHOW_TYPE(short[7]);
-  SHOW_TYPE(S);
-  SHOW_TYPE(double S::*);
-
-  return 0;
-}
--- a/xpcom/tests/moz.build
+++ b/xpcom/tests/moz.build
@@ -41,17 +41,16 @@ if CONFIG['OS_TARGET'] == 'WINNT':
 if CONFIG['WRAP_STL_INCLUDES'] and not CONFIG['CLANG_CL']:
     GeckoSimplePrograms([
         'TestSTLWrappers',
     ])
 
 XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']
 
 GeckoCppUnitTests([
-    'ShowAlignments',
     'TestAutoPtr',
     'TestAutoRef',
     'TestCOMArray',
     'TestCOMPtr',
     'TestCOMPtrEq',
     'TestFile',
     'TestHashtables',
     'TestID',