From d52c9e4d71a6ea065de4d024336de10873eb01d3 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Tue, 4 Nov 2014 16:30:08 +1100 Subject: libtests: Update dl01 documentation. --- testsuites/libtests/dl01/dl01.doc | 25 +++++++++++++++++++++++++ testsuites/libtests/dl01/dl01.scn | 14 ++++++++++++++ testsuites/libtests/dl01/init.c | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) (limited to 'testsuites/libtests/dl01') diff --git a/testsuites/libtests/dl01/dl01.doc b/testsuites/libtests/dl01/dl01.doc index e69de29bb2..a1099287d4 100644 --- a/testsuites/libtests/dl01/dl01.doc +++ b/testsuites/libtests/dl01/dl01.doc @@ -0,0 +1,25 @@ +# Copyright (c) 2014 Chris Johns +# +# The license and distribution terms for this file may be +# found in the file LICENSE in this distribution or at +# http://www.rtems.org/license/LICENSE. +# + +This file describes the directives and concepts tested by this test set. + +test set name: dl01 + +directives: + + dlopen + dlinfo + dlsym + dlclose + +concepts: + ++ Load a single ELF object file. ++ Check there are no unreolved externals. ++ Locate the rtems_main symbol. ++ Call the function and have the function call the base kernel imake. ++ Unload the ELF file. diff --git a/testsuites/libtests/dl01/dl01.scn b/testsuites/libtests/dl01/dl01.scn index e69de29bb2..ed53cfe66d 100644 --- a/testsuites/libtests/dl01/dl01.scn +++ b/testsuites/libtests/dl01/dl01.scn @@ -0,0 +1,14 @@ +*** BEGIN OF TEST libdl (RTL) 1 *** +load: /dl-o1.o +handle: 0x2137d8 loaded +Loaded module: argc:2 +[../../../../../../../../rtems.master/c/src/../../testsuites/libtests/dl01/dl-o1.c] + 0: Line 1 + 1: Line 2 +Loaded module: argc:3 +[../../../../../../../../rtems.master/c/src/../../testsuites/libtests/dl01/dl-o1.c] + 0: Call 2, line 1 + 1: Call 2, line 2 + 2: Call 2, line 3 +handle: 0x2137d8 closed +*** END OF TEST libdl (RTL) 1 *** diff --git a/testsuites/libtests/dl01/init.c b/testsuites/libtests/dl01/init.c index d66750202e..4af0b9bbf8 100644 --- a/testsuites/libtests/dl01/init.c +++ b/testsuites/libtests/dl01/init.c @@ -22,7 +22,7 @@ #include "dl-load.h" -const char rtems_test_name[] = "libdl (RTL) Loader 1"; +const char rtems_test_name[] = "libdl (RTL) 1"; /* forward declarations to avoid warnings */ static rtems_task Init(rtems_task_argument argument); -- cgit v1.2.3