Print this page
7159 libc-tests build failed on sparc

Split Close
Expand all
Collapse all
          --- old/usr/src/test/libc-tests/tests/threads/pthread_attr_get_np.c
          +++ new/usr/src/test/libc-tests/tests/threads/pthread_attr_get_np.c
↓ open down ↓ 67 lines elided ↑ open up ↑
  68   68  #define PTHREAD_CREATE_NONDAEMON_NP     0
  69   69  extern  int     pthread_attr_setdaemonstate_np(pthread_attr_t *, int);
  70   70  extern  int     pthread_attr_getdaemonstate_np(const pthread_attr_t *, int *);
  71   71  
  72   72  #define PGN_TEST_PRI    23
  73   73  
  74   74  static pthread_attr_t pgn_attr;
  75   75  static pthread_attr_t pgn_thr_attr;
  76   76  static pthread_barrier_t pgn_barrier;
  77   77  
  78      -#ifdef  __sparc
  79      -#define gregs   __gregs
  80      -#endif
  81   78  
  82   79  /*
  83   80   * Verify that the stack pointer of a context is consistent with where the
  84   81   * attributes indicate.
  85   82   */
  86   83  static void
  87   84  pgn_verif_thr_stack(pthread_attr_t *attr)
  88   85  {
  89   86          size_t stksz;
  90   87          void *stk;
↓ open down ↓ 2 lines elided ↑ open up ↑
  93   90  
  94   91          VERIFY0(getcontext(&ctx));
  95   92          VERIFY0(pthread_attr_getstack(attr, &stk, &stksz));
  96   93          VERIFY3P(stk, !=, NULL);
  97   94          VERIFY3S(stksz, !=, 0);
  98   95          sp = ctx.uc_mcontext.gregs[R_SP];
  99   96          VERIFY3U(sp, >, (uintptr_t)stk);
 100   97          VERIFY3U(sp, <, (uintptr_t)stk + stksz);
 101   98  }
 102   99  
 103      -#ifdef  __sparc
 104      -#undef  gregs
 105      -#endif
 106  100  
 107  101  static void
 108  102  pgn_test_fini(void)
 109  103  {
 110  104          int ret;
 111  105  
 112  106          ret = pthread_barrier_wait(&pgn_barrier);
 113  107          VERIFY(ret == 0 || ret == PTHREAD_BARRIER_SERIAL_THREAD);
 114  108          VERIFY0(pthread_attr_destroy(&pgn_attr));
 115  109          VERIFY0(pthread_attr_destroy(&pgn_thr_attr));
↓ open down ↓ 233 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX