LCOV - code coverage report
Current view: top level - autotest/cpp - testdestroy.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 5 5 100.0 %
Date: 2025-01-18 12:42:00 Functions: 4 4 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  *
       3             :  * Project:  GDAL Core
       4             :  * Purpose:  Test GDALDestroy().
       5             :  * Author:   Even Rouault, <even dot rouault at spatialys.com>
       6             :  *
       7             :  ******************************************************************************
       8             :  * Copyright (c) 2015, Even Rouault <even dot rouault at spatialys.com>
       9             :  *
      10             :  * SPDX-License-Identifier: MIT
      11             :  ****************************************************************************/
      12             : 
      13             : #include "gdal.h"
      14             : 
      15             : #include "gtest_include.h"
      16             : 
      17             : namespace
      18             : {
      19             : 
      20             : // ---------------------------------------------------------------------------
      21             : 
      22           4 : TEST(testdestroy, test)
      23             : {
      24           1 :     GDALAllRegister();
      25             :     /* See corresponding bug reports: */
      26             :     /* https://trac.osgeo.org/gdal/ticket/6139 */
      27             :     /* https://trac.osgeo.org/gdal/ticket/6868 */
      28           1 :     CPLError(CE_None, CPLE_AppDefined,
      29             :              "Expected, CPLError called to trigger hErrorMutex allocation");
      30           1 :     GDALDestroy();
      31           1 : }
      32             : 
      33             : }  // namespace

Generated by: LCOV version 1.14