Print this page
10823 should ignore DW_TAG_subprogram with DW_AT_declaration tags
10824 GCC7-derived CTF can double qualifiers on arrays
10825 ctfdump -c drops last type
10826 ctfdump -c goes off the rails with a missing parent
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/test/util-tests/tests/ctf/check-array.c
          +++ new/usr/src/test/util-tests/tests/ctf/check-array.c
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3   * Common Development and Distribution License ("CDDL"), version 1.0.
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13      - * Copyright (c) 2019, Joyent, Inc.
       13 + * Copyright 2019, Joyent, Inc.
  14   14   */
  15   15  
  16   16  /*
  17   17   * Check that we properly generate basic nested arrays.
  18   18   */
  19   19  
  20   20  #include "check-common.h"
  21   21  
  22   22  static check_number_t check_base[] = {
  23   23          { "char", CTF_K_INTEGER, CTF_INT_SIGNED | CTF_INT_CHAR, 0, 8 },
↓ open down ↓ 74 lines elided ↑ open up ↑
  98   98                              ctf_errmsg(ret));
  99   99                          ret = EXIT_FAILURE;
 100  100                          continue;
 101  101                  }
 102  102                  if (!ctftest_check_numbers(fp, check_base))
 103  103                          ret = EXIT_FAILURE;
 104  104                  if (!ctftest_check_symbols(fp, check_syms))
 105  105                          ret = EXIT_FAILURE;
 106  106                  for (d = 0; descents[d].cdt_sym != NULL; d++) {
 107  107                          if (!ctftest_check_descent(descents[d].cdt_sym, fp,
 108      -                            descents[d].cdt_tests)) {
      108 +                            descents[d].cdt_tests, B_FALSE)) {
 109  109                                  ret = EXIT_FAILURE;
 110  110                          }
 111  111                  }
 112  112                  ctf_close(fp);
 113  113          }
 114  114  
 115  115          return (ret);
 116  116  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX