Changeset 696b9121 in rtems for testsuites
- Timestamp:
- 04/12/18 07:48:28 (6 years ago)
- Branches:
- 5, master
- Children:
- f35c3be9
- Parents:
- f59d435d
- git-author:
- Chris Johns <chrisj@…> (04/12/18 07:48:28)
- git-committer:
- Chris Johns <chrisj@…> (04/12/18 07:59:46)
- Location:
- testsuites/libtests
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/libtests/Makefile.am
rf59d435d r696b9121 365 365 dl02.tar: dl02-o1.o dl02-o2.o 366 366 @rm -f $@ 367 $(AM_V_GEN)$(PAX) -w -f $@ $ <367 $(AM_V_GEN)$(PAX) -w -f $@ $+ 368 368 dl02-tar.c: dl02.tar 369 369 $(AM_V_GEN)$(BIN2C) -C $< $@ -
testsuites/libtests/dl01/dl-load.c
rf59d435d r696b9121 29 29 char* message = "loaded"; 30 30 31 printf("load: /dl -o1.o\n");31 printf("load: /dl01-o1.o\n"); 32 32 33 handle = dlopen ("/dl -o1.o", RTLD_NOW | RTLD_GLOBAL);33 handle = dlopen ("/dl01-o1.o", RTLD_NOW | RTLD_GLOBAL); 34 34 if (!handle) 35 35 { -
testsuites/libtests/dl02/dl-load.c
rf59d435d r696b9121 50 50 int ret; 51 51 52 o1 = dl_load_obj("/dl -o1.o");52 o1 = dl_load_obj("/dl02-o1.o"); 53 53 if (!o1) 54 54 return 1; 55 o2 = dl_load_obj("/dl -o2.o");55 o2 = dl_load_obj("/dl02-o2.o"); 56 56 if (!o1) 57 57 return 1; -
testsuites/libtests/dl03/dl-cache.c
rf59d435d r696b9121 1 1 /* 2 * Copyright (c) 2016 Chris Johns <chrisj@rtems.org>. All rights reserved.2 * Copyright (c) 2016, 2018 Chris Johns <chrisj@rtems.org>. All rights reserved. 3 3 * 4 4 * The license and distribution terms for this file may be … … 64 64 } 65 65 66 static off_t dl_cache_buffer_offset(rtems_rtl_obj_cache _t* cache, void* buffer)66 static off_t dl_cache_buffer_offset(rtems_rtl_obj_cache* cache, void* buffer) 67 67 { 68 68 return (off_t) (((uint8_t*) buffer) - ((uint8_t*) cache->buffer)); … … 74 74 * Check the RTL object is created and can be locked and unlocked. 75 75 */ 76 rtems_test_assert(rtems_rtl_data () == NULL);76 rtems_test_assert(rtems_rtl_data_unprotected () == NULL); 77 77 rtems_test_assert(rtems_rtl_lock () != NULL); 78 78 rtems_rtl_unlock (); 79 rtems_test_assert(rtems_rtl_data () != NULL);79 rtems_test_assert(rtems_rtl_data_unprotected () != NULL); 80 80 rtems_rtl_trace_set_mask(RTEMS_RTL_TRACE_ALL | RTEMS_RTL_TRACE_CACHE); 81 81 } … … 83 83 int dl_cache_test(void) 84 84 { 85 rtems_rtl_obj_cache _tcache;86 int 87 void* 88 off_t 89 off_t 90 size_t 91 size_t 85 rtems_rtl_obj_cache cache; 86 int fd; 87 void* buffer; 88 off_t offset_in; 89 off_t offset; 90 size_t length_in; 91 size_t length; 92 92 93 93 /* -
testsuites/libtests/dl04/dl-load.c
rf59d435d r696b9121 27 27 28 28 rtems_rtl_trace_set_mask(RTEMS_RTL_TRACE_ALL); 29 handle = dlopen("/dl -o4.o", RTLD_GLOBAL | RTLD_NOW);29 handle = dlopen("/dl04-o4.o", RTLD_GLOBAL | RTLD_NOW); 30 30 err = dlerror(); 31 31 if (err != NULL) -
testsuites/libtests/dl05/dl-load.c
rf59d435d r696b9121 37 37 rtems_rtl_trace_set_mask(RTEMS_RTL_TRACE_ALL); 38 38 39 handle = dlopen("/dl -o5.o", RTLD_GLOBAL | RTLD_NOW);39 handle = dlopen("/dl05-o5.o", RTLD_GLOBAL | RTLD_NOW); 40 40 if (handle == NULL) 41 41 {
Note: See TracChangeset
for help on using the changeset viewer.