zsh-workers
 help / color / mirror / code / Atom feed
* Actually do test what I claimed to test
@ 2015-11-26 17:26 Bart Schaefer
  2015-11-26 18:04 ` Peter Stephenson
  2015-11-26 20:13 ` Danek Duvall
  0 siblings, 2 replies; 8+ messages in thread
From: Bart Schaefer @ 2015-11-26 17:26 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-11-27 19:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-26 17:26 Actually do test what I claimed to test Bart Schaefer
2015-11-26 18:04 ` Peter Stephenson
2015-11-26 20:13 ` Danek Duvall
2015-11-27  8:09   ` Jun T.
2015-11-27 10:32     ` Bart Schaefer
2015-11-27 10:57       ` Jun T.
2015-11-27 11:32       ` Peter Stephenson
2015-11-27 19:10         ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).