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: 2024-11-21 22:18:42 Functions: 4 4 100.0 %

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

Generated by: LCOV version 1.14