< prev index next >

src/share/vm/utilities/internalVMTests.cpp

Print this page
rev 12338 : 8166156: Convert test_semaphore to GTest
Reviewed-by: duke


  24 
  25 #include "precompiled.hpp"
  26 
  27 #ifndef PRODUCT
  28 
  29 #include "utilities/internalVMTests.hpp"
  30 #include "utilities/macros.hpp"
  31 #include "utilities/ostream.hpp"
  32 
  33 #define run_unit_test(unit_test_function_call)                \
  34   void unit_test_function_call();                             \
  35   run_test(#unit_test_function_call, unit_test_function_call);
  36 
  37 void InternalVMTests::run_test(const char* name, void (*test)()) {
  38   tty->print_cr("Running test: %s", name);
  39   test();
  40 }
  41 
  42 void InternalVMTests::run() {
  43   tty->print_cr("Running internal VM tests");
  44   run_unit_test(test_semaphore);
  45   run_unit_test(TestReservedSpace_test);
  46   run_unit_test(TestReserveMemorySpecial_test);
  47   run_unit_test(TestVirtualSpace_test);
  48   run_unit_test(TestMetaspaceAux_test);
  49   run_unit_test(TestVirtualSpaceNode_test);
  50   run_unit_test(TestGlobalDefinitions_test);
  51   run_unit_test(GCTimer_test);
  52   run_unit_test(ObjectMonitor_test);
  53   run_unit_test(DirectivesParser_test);
  54 #if INCLUDE_VM_STRUCTS
  55   run_unit_test(VMStructs_test);
  56 #endif
  57 #if INCLUDE_ALL_GCS
  58   run_unit_test(TestBufferingOopClosure_test);
  59   run_unit_test(ParallelCompact_test);
  60 #endif
  61   tty->print_cr("All internal VM tests passed");
  62 }
  63 
  64 #endif


  24 
  25 #include "precompiled.hpp"
  26 
  27 #ifndef PRODUCT
  28 
  29 #include "utilities/internalVMTests.hpp"
  30 #include "utilities/macros.hpp"
  31 #include "utilities/ostream.hpp"
  32 
  33 #define run_unit_test(unit_test_function_call)                \
  34   void unit_test_function_call();                             \
  35   run_test(#unit_test_function_call, unit_test_function_call);
  36 
  37 void InternalVMTests::run_test(const char* name, void (*test)()) {
  38   tty->print_cr("Running test: %s", name);
  39   test();
  40 }
  41 
  42 void InternalVMTests::run() {
  43   tty->print_cr("Running internal VM tests");

  44   run_unit_test(TestReservedSpace_test);
  45   run_unit_test(TestReserveMemorySpecial_test);
  46   run_unit_test(TestVirtualSpace_test);
  47   run_unit_test(TestMetaspaceAux_test);
  48   run_unit_test(TestVirtualSpaceNode_test);
  49   run_unit_test(TestGlobalDefinitions_test);
  50   run_unit_test(GCTimer_test);
  51   run_unit_test(ObjectMonitor_test);
  52   run_unit_test(DirectivesParser_test);
  53 #if INCLUDE_VM_STRUCTS
  54   run_unit_test(VMStructs_test);
  55 #endif
  56 #if INCLUDE_ALL_GCS
  57   run_unit_test(TestBufferingOopClosure_test);
  58   run_unit_test(ParallelCompact_test);
  59 #endif
  60   tty->print_cr("All internal VM tests passed");
  61 }
  62 
  63 #endif
< prev index next >