Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Actually do test what I claimed to test
- X-seq: zsh-workers 37225
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Actually do test what I claimed to test
- Date: Thu, 26 Nov 2015 09:26:36 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:to:subject:mime-version:content-type; bh=kgZI2Xf6hAvbbej0T1wraGhyrZoIUKlxCnUgBFWO+tY=; b=POP0AwOLA1C5qhypklQaqXxGbcOek8QzAocFzP4O2W+wo5l6pilKH8noWiVNWkb0N8 pDxFGO1oN3b2Zrugvaq7C6JsmHzwy1Z2NybEGAV6v2ovYkgcFjf12CECJmbR/mKiMRgx R59nh4Hsc511IFCdIeiMwtbYVV+52TKgYwCSp802um4psbcNBPh1LXxGGWyGq9eexYxl mg1yMVzPoqRiOgjp7ugpZeHmmoYo0nFBY58eo0mSERBKHxRWXliWahgiIm2buA75Qheu hkRFtMloFxfDVFqLJfJZ8tm000YiRmLgGI3QyPph4SeOWqXKPCu8DBymrqAxKnGr343C c66g==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
The test I added in 37208 wasn't doing what I intended.
Anyone see a portability problem with my use of "sed" here?
diff --git a/Test/V10private.ztst b/Test/V10private.ztst
index f877455..d5bee5e 100644
--- a/Test/V10private.ztst
+++ b/Test/V10private.ztst
@@ -6,12 +6,17 @@
ZTST_unimplemented="can't load the zsh/param/private module for testing"
fi
+ # Do not use .tmp here, ztst.zsh will remove it too soon (see %cleanup)
+ mkdir private.TMP
+ sed '/^%prep/a \
+ zmodload zsh/param/private' < $ZTST_srcdir/B02typeset.ztst > private.TMP/B02
+
%test
(zmodload -u zsh/param/private && zmodload zsh/param/private)
0:unload and reload the module without crashing
- $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh $ZTST_srcdir/B02typeset.ztst
+ ZTST_verbose=0 $ZTST_exe +Z -f $ZTST_srcdir/ztst.zsh private.TMP/B02
0:typeset still works with zsh/param/private module loaded
*>*
*>*
@@ -270,3 +275,7 @@ F:note "typeset" rather than "private" in output from outer
() { private -h SECONDS }
0:private parameter may hide a special parameter
+
+%clean
+
+ rm -r private.TMP
Messages sorted by:
Reverse Date,
Date,
Thread,
Author