• [ace users] Timer_Queue_Reference_Counting_Test does not go thru all ca

    From gkruchio@gmail.com@21:1/5 to All on Fri Feb 17 04:19:30 2017
    ACE VERSION: 6.2.0

    HOST MACHINE and OPERATING SYSTEM:
    RedHat Enterprise LINUX 6.5

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
    n.a.

    COMPILER NAME AND VERSION (AND PATCHLEVEL):
    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

    THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
    specific file, simply state which one]:
    $(ACE_ROOT)ace/config-linux.h

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
    use a link to a platform-specific file, simply state which one
    (unless this isn't used in this case, e.g., with Microsoft Visual
    C++)]:
    $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles):
    n.a.

    AREA/CLASS/EXAMPLE AFFECTED: $(ACE_ROOT)/tests/Timer_Queue_Reference_Counting_Test

    DOES THE PROBLEM AFFECT:
    COMPILATION?
    no
    LINKING?
    no
    EXECUTION?
    yes
    OTHER (please specify)?
    n.a.

    SYNOPSIS:
    not all cancellation test cases are executed

    DESCRIPTION:
    Number of cancellation test cases is calculated incorrectly due to
    using wrong number of array elements

    REPEAT BY:
    The following test delivered too few traces ./Timer_Queue_Reference_Counting_Test -b 0 -c 0 -d 0 -e 0 -z 1

    SAMPLE FIX/WORKAROUND:
    template <class TIMER_QUEUE>
    cancellation_test<TIMER_QUEUE>::cancellation_test (const char *timer_queue_type)
    {
    ...
    for (int i = 0;
    i < (int) (sizeof configs / (sizeof (int) * 4/*5*/));
    i++)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Johnny Willemsen@21:1/5 to gkru...@gmail.com on Wed Feb 22 00:53:08 2017
    Hi,

    Thanks using the PRF form. We prefer the mailing lists as described at http://www.dre.vanderbilt.edu/~schmidt/ACE-mail.html. Please open a pull request at https://github.com/DOCGroup/ACE_TAO with the necessary fixes and test extensions.

    Best regards,

    Johnny Willemsen
    Remedy IT
    http://www.remedy.nl

    On Friday, February 17, 2017 at 1:19:34 PM UTC+1, gkru...@gmail.com wrote:
    ACE VERSION: 6.2.0

    HOST MACHINE and OPERATING SYSTEM:
    RedHat Enterprise LINUX 6.5

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
    n.a.

    COMPILER NAME AND VERSION (AND PATCHLEVEL):
    gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

    THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
    specific file, simply state which one]:
    $(ACE_ROOT)ace/config-linux.h

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
    use a link to a platform-specific file, simply state which one
    (unless this isn't used in this case, e.g., with Microsoft Visual
    C++)]:
    $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles):
    n.a.

    AREA/CLASS/EXAMPLE AFFECTED: $(ACE_ROOT)/tests/Timer_Queue_Reference_Counting_Test

    DOES THE PROBLEM AFFECT:
    COMPILATION?
    no
    LINKING?
    no
    EXECUTION?
    yes
    OTHER (please specify)?
    n.a.

    SYNOPSIS:
    not all cancellation test cases are executed

    DESCRIPTION:
    Number of cancellation test cases is calculated incorrectly due to
    using wrong number of array elements

    REPEAT BY:
    The following test delivered too few traces ./Timer_Queue_Reference_Counting_Test -b 0 -c 0 -d 0 -e 0 -z 1

    SAMPLE FIX/WORKAROUND:
    template <class TIMER_QUEUE> cancellation_test<TIMER_QUEUE>::cancellation_test (const char *timer_queue_type)
    {
    ...
    for (int i = 0;
    i < (int) (sizeof configs / (sizeof (int) * 4/*5*/));
    i++)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)