Changeset 115e059 in rtems


Ignore:
Timestamp:
11/30/13 21:42:38 (10 years ago)
Author:
Daniel Ramirez <javamonn@…>
Branches:
4.11, 5, master
Children:
adc2301
Parents:
135e957
git-author:
Daniel Ramirez <javamonn@…> (11/30/13 21:42:38)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/30/13 21:50:25)
Message:

fixed psxtmthread02 test, updated .csv to be in sync and added test .docs

Location:
testsuites
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtmtests/psxtmbarrier03/init.c

    r135e957 r115e059  
    6969   */
    7070  benchmark_timer_initialize();
    71     status = pthread_barrier_wait( &barrier );
     71  status = pthread_barrier_wait( &barrier );
    7272  end_time = benchmark_timer_read();
    7373  /*
  • testsuites/psxtmtests/psxtmtests_plan.csv

    r135e957 r115e059  
    1414"pthread_mutex_getprioceiling","psxtmmutex07","psxtmtest_single","Yes"
    1515,,,
    16 "pthread_cond_init","psxtmcond01","psxtmtest_init_destroy","No"
    17 "pthread_cond_destroy","psxtmcond01","psxtmtest_init_destroy","No"
    18 "pthread_cond_signal - no threads waiting","psxtmcond02","psxtmtest_single","No"
    19 "pthread_cond_signal - thread waiting: no preempt","psxtmcond03","psxtmtest_unblocking_nopreempt","No"
     16"pthread_cond_init","psxtmcond01","psxtmtest_init_destroy","Yes"
     17"pthread_cond_destroy","psxtmcond01","psxtmtest_init_destroy","Yes"
     18"pthread_cond_signal - no threads waiting","psxtmcond02","psxtmtest_single","Yes"
     19"pthread_cond_signal - thread waiting: no preempt","psxtmcond03","psxtmtest_unblocking_nopreempt","Yes"
    2020"pthread_cond_signal - thread waiting: preempt","psxtmcond04","psxtmtest_unblocking_preempt","No"
    21 "pthread_cond_broadcast - no threads waiting","psxtmcond05","psxtmtest_single","No"
     21"pthread_cond_broadcast - no threads waiting","psxtmcond05","psxtmtest_single","Yes"
    2222"pthread_cond_broadcast -  threads waiting: no preempt","psxtmcond06","psxtmtest_unblocking_nopreempt","No"
    2323"pthread_cond_broadcast -  threads waiting: preempt","psxtmcond07","psxtmtest_unblocking_preempt","No"
    2424
    25 "pthread_cond_wait - blocks (mutex+condvar pattern)","psxtmcond08","psxtmtest_blocking","No"
     25"pthread_cond_wait - blocks (mutex+condvar pattern)","psxtmcond08","psxtmtest_blocking","Yes"
    2626"pthread_cond_timedwait(&time) - blocks (mutex+condvar pattern)","psxtmcond09","psxtmtest_blocking","No"
    2727"pthread_cond_timedwait(&time) - time in past error","psxtmcond10","psxtmtest_blocking","No"
    2828,,,
    2929"pthread_create - no preempt","psxtmthread01","psxtmtest_single","Yes"
    30 "pthread_create - preempt","psxtmthread02","psxtmtest_single","No"
     30"pthread_create - preempt","psxtmthread02","psxtmtest_single","Yes"
    3131"pthread_join",,,
    3232"pthread_detach",,,
    3333"pthread_exit",,,
    34 "pthread_self","psxtmthread03","psxtmtest_single w/multiple timings","No"
    35 "pthread_equal","psxtmthread03","psxtmtest_single w/multiple timings","No"
     34"pthread_exit","psxtmthread03","psxtmtest_single","Yes"
    3635"pthread_getschedparam","psxtmthread04","psxtmtest_single w/multiple timings","No"
    3736"pthread_setschedparam - no thread switch","psxtmthread04","psxtmtest_single w/multiple timings","No"
     
    6261"pthread_barrier_wait - releasing: preempt","psxtmbarrier04","psxtmtest_unblocking_preempt","Yes"
    6362,,,
    64 "pthread_spin_init","psxspin01","psxtmtest_init_destroy","No"
    65 "pthread_spin_destroy","psxspin01","psxtmtest_init_destroy","No"
    66 "pthread_spin_lock - available","psxspin02","psxtmtest_single w/multiple timings","No"
    67 "pthread_spin_trylock - available","psxspin02","psxtmtest_single w/multiple timings","No"
    68 "pthread_spin_trylock - not available","psxspin02","psxtmtest_single w/multiple timings","No"
    69 "pthread_spin_unlock","psxspin02","psxtmtest_single w/multiple timings","No"
     63"pthread_spin_init","psxspin01","psxtmtest_init_destroy","Yes"
     64"pthread_spin_destroy","psxspin01","psxtmtest_init_destroy","Yes"
     65"pthread_spin_lock - available","psxspin02","psxtmtest_single w/multiple timings","Yes"
     66"pthread_spin_trylock - available","psxspin02","psxtmtest_single w/multiple timings","Yes"
     67"pthread_spin_trylock - not available","psxspin02","psxtmtest_single w/multiple timings","Yes"
     68"pthread_spin_unlock","psxspin02","psxtmtest_single w/multiple timings","Yes"
    7069,,,
    7170"pthread_rwlock_init","psxtmrwlock01","psxtmtest_init_destroy","Yes"
  • testsuites/psxtmtests/psxtmthread02/init.c

    r135e957 r115e059  
    11/*
    2  *  COPYRIGHT (c) 1989-2012.
     2 *  COPYRIGHT (c) 1989-2013.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    2424void benchmark_pthread_create(void)
    2525{
    26   long end_time;
    2726  int  status;
    2827  pthread_t thread_ID;
     28  pthread_attr_t attr;
     29  struct sched_param param;
    2930
     31  pthread_attr_init(&attr);
     32  pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
     33  pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
     34  param.sched_priority = sched_get_priority_max(SCHED_FIFO) - 1;
     35  pthread_attr_setschedparam(&attr, &param);
     36
     37  /* create second thread with max priority and get preempted on creation */
    3038  benchmark_timer_initialize();
    31  
    32   status = pthread_create(&thread_ID, NULL, thread, NULL);
    33   rtems_test_assert( status == 0 );
    34  
     39  status = pthread_create(&thread_ID, &attr, thread, NULL);
     40}
     41
     42void *thread(
     43  void *argument
     44)
     45{
     46  long end_time;
     47
    3548  end_time = benchmark_timer_read();
    36 
    37   rtems_test_assert( status == 0 );
    38 
    3949  put_time(
    4050    "pthread_create - preempt",
     
    4454    0
    4555  );
    46 
    47 }
    48 
    49 void *thread(
    50   void *argument
    51 )
    52 {
    53   //Empty thread used in pthread_create().
    5456  return NULL;
    5557}
Note: See TracChangeset for help on using the changeset viewer.