Changeset bac53634 in rtems


Ignore:
Timestamp:
Dec 17, 2018, 6:40:46 AM (6 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
a7c6176
Parents:
85b59974
git-author:
Chris Johns <chrisj@…> (12/17/18 06:40:46)
git-committer:
Chris Johns <chrisj@…> (02/08/19 23:06:34)
Message:

libtests/dl02: Update the rtl-shell path. More verbose test.

Updates #3686

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/dl07/dl-load.c

    r85b59974 rbac53634  
    1717#include <tmacros.h>
    1818
     19#include <rtems/rtl/rtl-shell.h>
    1920#include <rtems/rtl/rtl-trace.h>
    2021
    2122typedef int (*call_sig)(void);
    22 
    23 int rtems_rtl_shell_command (int argc, char* argv[]);
    2423
    2524static void dl_load_dump (void)
     
    7776}
    7877
    79 static void dl_close (void* handle)
     78static void dl_close (void* handle, const char* msg)
    8079{
    8180  int r;
    82   printf ("handle: %p closing\n", handle);
     81  printf ("%s: handle: %p closing\n", msg, handle);
    8382  r = dlclose (handle);
    8483  if (r != 0)
     
    148147   * Try and close the dependent modules, we should get an error.
    149148   */
     149  printf ("unload test: o1\n");
    150150  rtems_test_assert (dlclose (o1) != 0);
     151  printf ("unload test: o2\n");
    151152  rtems_test_assert (dlclose (o2) != 0);
     153  printf ("unload test: o4\n");
    152154  rtems_test_assert (dlclose (o4) != 0);
     155  printf ("unload test: o5\n");
    153156  rtems_test_assert (dlclose (o5) != 0);
    154157
    155   dl_close (o3);
     158  dl_close (o3, "o3");
    156159  rtems_test_assert (dlclose (o1) != 0);
    157   dl_close (o4);
     160  dl_close (o4, "o4");
    158161  rtems_test_assert (dlclose (o1) != 0);
    159   dl_close (o5);
     162  dl_close (o5, "o5");
    160163  rtems_test_assert (dlclose (o1) != 0);
    161   dl_close (o2);
    162   dl_close (o1);
     164  dl_close (o2, "o2");
     165  dl_close (o1, "o1");
    163166
    164167  return 0;
Note: See TracChangeset for help on using the changeset viewer.