[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/tests/modules.at,v
From: |
Eric Blake |
Subject: |
Changes to m4/tests/modules.at,v |
Date: |
Thu, 06 Sep 2007 22:58:29 +0000 |
CVSROOT: /sources/m4
Module name: m4
Changes by: Eric Blake <ericb> 07/09/06 22:58:27
Index: tests/modules.at
===================================================================
RCS file: /sources/m4/m4/tests/modules.at,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- tests/modules.at 7 Aug 2007 03:15:32 -0000 1.26
+++ tests/modules.at 6 Sep 2007 22:58:27 -0000 1.27
@@ -487,3 +487,45 @@
AT_CHECK_M4([-m load input.m4], [0])
AT_CLEANUP
+
+
+## ------------------ ##
+## unload load module ##
+## ------------------ ##
+
+AT_SETUP([unload load module])
+AT_CHECK_DYNAMIC_MODULE
+
+dnl Ensure that the load module can be unloaded and reloaded (obviously,
+dnl it can't reload itself; the reload occurs on the command line). Since
+dnl the module must be resident (after all, the `unload' builtin had better
+dnl not unmap the memory for the code it is currently executing), make sure
+dnl that resident modules are handled gracefully.
+AT_DATA([in1.m4], [[__load__ 1
+unload(`load') 2
+__load__ 3
+]])
+
+AT_DATA([in2.m4], [[__load__ 4
+load(`load') 5
+__load__ 6
+unload(`load') 7
+__load__ 8
+unload(`load') 9
+__load__ 10
+]])
+
+AT_CHECK_M4([-m load in1.m4 -m load in2.m4], [0],
+[[ 1
+ 2
+__load__ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+__load__ 10
+]])
+
+AT_CLEANUP
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to m4/tests/modules.at,v,
Eric Blake <=