Coverage for /Syzygy/integration_tests/crash_for_exception_export.cc

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
100.0%440.C++source

Line-by-line coverage:

   1    :  // Copyright 2015 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  
  16    :  // This file exports CrashForException, which is an optional API that
  17    :  // instrumented processes may export (from their executable module) in order to
  18    :  // handle SyzyASAN reports. The exit code from this method is used to verify
  19    :  // SyzyASAN functionality in instrument_integration_test.cc .
  20    :  
  21    :  #include <windows.h>
  22    :  
  23    :  extern "C" int __declspec(dllexport) CrashForException(
  24  E :      EXCEPTION_POINTERS* info) {
  25  E :    ::TerminateProcess(::GetCurrentProcess(), 99);
  26  E :    return EXCEPTION_CONTINUE_SEARCH;
  27  E :  }

Coverage information generated Thu Jan 14 17:40:38 2016.