Changeset 62119d2 in rtems


Ignore:
Timestamp:
Nov 15, 2017, 6:55:43 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
d4b99ae3
Parents:
2727bc7f
git-author:
Sebastian Huber <sebastian.huber@…> (11/15/17 06:55:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/17 07:10:20)
Message:

dl01, dl02, dl05: Fix unresolved printf symbol

The link time wrap of printf leads to unresolved symbols in the loadable
modules. This resulted in infinite loops and test timeouts. Use
rtems_printf() for output.

Update #3199.

Location:
testsuites/libtests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/dl01/dl-o1.c

    r2727bc7f r62119d2  
    77 */
    88
    9 #include <stdio.h>
    10 #include <stdlib.h>
    11 
    129/**
    1310 * Hello World as a loadable module.
    1411 */
    1512
    16 #include <stdio.h>
     13#include <rtems/test.h>
     14
     15#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
    1716
    1817/*
  • testsuites/libtests/dl02/dl-o1.c

    r2727bc7f r62119d2  
    77 */
    88
    9 #include <stdio.h>
    10 #include <stdlib.h>
     9#include "dl-o2.h"
    1110
    1211#include <dlfcn.h>
    1312
    14 #include "dl-o2.h"
     13#include <rtems/test.h>
     14
     15#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
    1516
    1617typedef int (*func1_t)(int argc, const char* argv[]);
  • testsuites/libtests/dl02/dl-o2.c

    r2727bc7f r62119d2  
    77 */
    88
    9 #include <stdio.h>
     9#include "dl-o2.h"
    1010
    11 #include "dl-o2.h"
     11#include <rtems/test.h>
     12
     13#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
    1214
    1315int dl_o2_func1 (int argc, char* argv[])
  • testsuites/libtests/dl05/dl-o5.cpp

    r2727bc7f r62119d2  
    1 #include <cstdio>
     1#include "dl-load.h" /* make the symbol a C linkage */
     2
    23#include <stdexcept>
    3 #include "dl-load.h" /* make the symbol a C linkage */
     4
     5#include <rtems/test.h>
     6
     7#define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__);
     8
    49void exception_dl(bool throw_runtime)
    510{
Note: See TracChangeset for help on using the changeset viewer.