LCOV - code coverage report
Current view: top level - tests - t-mutex.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 10 10 100.0 %
Date: 2016-11-29 14:53:57 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /* t-mutex.c
       2             :  * Copyright 2011, 2012 g10 Code GmbH
       3             :  *
       4             :  * This file is free software; as a special exception the author gives
       5             :  * unlimited permission to copy and/or distribute it, with or without
       6             :  * modifications, as long as this notice is preserved.
       7             :  *
       8             :  * This file is distributed in the hope that it will be useful, but
       9             :  * WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
      10             :  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      11             :  */
      12             : 
      13             : #include "t-support.h"
      14             : 
      15             : 
      16             : int
      17           1 : main (int argc, char *argv[])
      18             : {
      19             :   int rc;
      20             :   npth_mutex_t mutex;
      21             : 
      22           1 :   rc = npth_init ();
      23           1 :   fail_if_err (rc);
      24             : 
      25           1 :   rc = npth_mutex_init (&mutex, NULL);
      26           1 :   fail_if_err (rc);
      27           1 :   rc = npth_mutex_lock (&mutex);
      28           1 :   fail_if_err (rc);
      29           1 :   rc = npth_mutex_unlock (&mutex);
      30           1 :   fail_if_err (rc);
      31             : 
      32           1 :   return 0;
      33             : }

Generated by: LCOV version 1.11