From d3c4108f30fd987724ccffd9559ea2f49ac57328 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 23 Sep 2008 08:41:54 +0000 Subject: Rocky Bernstein: 25727: allow fc non-interactively Add sanity test for empty history --- Test/.distfiles | 1 + Test/B06fc.ztst | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 Test/B06fc.ztst (limited to 'Test') diff --git a/Test/.distfiles b/Test/.distfiles index 6b72d8965..fcb61d7bd 100644 --- a/Test/.distfiles +++ b/Test/.distfiles @@ -13,6 +13,7 @@ B02typeset.ztst B03print.ztst B04read.ztst B05eval.ztst +B06fc.ztst C01arith.ztst C02cond.ztst C03traps.ztst diff --git a/Test/B06fc.ztst b/Test/B06fc.ztst new file mode 100644 index 000000000..6195fd6ab --- /dev/null +++ b/Test/B06fc.ztst @@ -0,0 +1,11 @@ +# Tests of fc command +%prep + + mkdir fc.tmp + cd fc.tmp + print 'fc -l foo' >fcl + +%test + $ZTST_testdir/../Src/zsh ./fcl +1:Checking that fc -l foo doesn't core dump history is empty +?./fcl:fc:1: event not found: foo -- cgit 1.4.1