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-enum.c
          +++ new/usr/src/test/util-tests/tests/ctf/check-enum.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 handle enums.
  18   18   */
  19   19  
  20   20  #include "check-common.h"
  21   21  
  22   22  static check_symbol_t check_syms[] = {
  23   23          { "ff6", "enum ff6" },
↓ open down ↓ 93 lines elided ↑ open up ↑
 117  117                  if ((fp = ctf_open(argv[i], &ret)) == NULL) {
 118  118                          warnx("failed to open %s: %s", argv[i],
 119  119                              ctf_errmsg(ret));
 120  120                          ret = EXIT_FAILURE;
 121  121                          continue;
 122  122                  }
 123  123                  if (!ctftest_check_symbols(fp, check_syms))
 124  124                          ret = EXIT_FAILURE;
 125  125                  for (d = 0; descents[d].cdt_sym != NULL; d++) {
 126  126                          if (!ctftest_check_descent(descents[d].cdt_sym, fp,
 127      -                            descents[d].cdt_tests)) {
      127 +                            descents[d].cdt_tests, B_FALSE)) {
 128  128                                  ret = EXIT_FAILURE;
 129  129                          }
 130  130                  }
 131  131  
 132  132                  for (d = 0; enums[d].cet_type != NULL; d++) {
 133  133                          if (!ctftest_check_enum(enums[d].cet_type, fp,
 134  134                              enums[d].cet_tests)) {
 135  135                                  ret = EXIT_FAILURE;
 136  136                          }
 137  137                  }
 138  138                  ctf_close(fp);
 139  139          }
 140  140  
 141  141          return (ret);
 142  142  
 143  143  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX