[rtems commit] libtests: Update dl01 documentation.
Chris Johns
chrisj at rtems.org
Tue Nov 4 05:26:31 UTC 2014
Module: rtems
Branch: master
Commit: d52c9e4d71a6ea065de4d024336de10873eb01d3
Changeset: http://git.rtems.org/rtems/commit/?id=d52c9e4d71a6ea065de4d024336de10873eb01d3
Author: Chris Johns <chrisj at rtems.org>
Date: Tue Nov 4 16:30:08 2014 +1100
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 deletions(-)
diff --git a/testsuites/libtests/dl01/dl01.doc b/testsuites/libtests/dl01/dl01.doc
index e69de29..a109928 100644
--- a/testsuites/libtests/dl01/dl01.doc
+++ b/testsuites/libtests/dl01/dl01.doc
@@ -0,0 +1,25 @@
+# Copyright (c) 2014 Chris Johns <chrisj at rtems.org>
+#
+# 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 e69de29..ed53cfe 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 d667502..4af0b9b 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);
More information about the vc
mailing list