Update to calendar(1) regress for new bug

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Update to calendar(1) regress for new bug

Andy Bradford-13
Hello,

It looks like my last changes  to calendar(1) introduced a regression of
a previous behavior which Todd Miller already fixed (thank you).

Here is an update to regress that will track that behavior:

Index: Makefile
===================================================================
RCS file: /home/cvs/src/regress/usr.bin/calendar/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 29 Jan 2019 20:10:26 -0000 1.3
+++ Makefile 21 Mar 2019 13:27:53 -0000
@@ -15,7 +15,7 @@ ${f:C|.*/||}:
  @${CALENDAR} -f ${IN} -t ${f:C|.*/||:C/\..*//} | diff -u ${OUT} -
 .endfor
 
-REGRESS_TARGETS+=before after
+REGRESS_TARGETS+=before after noweekend
 
 before:
  @echo ${*}
@@ -24,6 +24,10 @@ before:
 after:
  @echo ${*}
  @${CALENDAR} -f ${.CURDIR}/beforeafter.in -t 20190111 -A 5 | diff -U 7 ${.CURDIR}/after.out -
+
+noweekend:
+ @echo ${*}
+ @${CALENDAR} -f ${.CURDIR}/beforeafter.in -t 20190111 -A 0 | diff -U 7 ${.CURDIR}/noweekend.out -
 
 .PHONY: ${REGRESS_TARGETS}
 
Index: noweekend.out
===================================================================
RCS file: noweekend.out
diff -N noweekend.out
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ noweekend.out 21 Mar 2019 13:27:53 -0000
@@ -0,0 +1 @@
+Jan 11* Friday

--
TAI64 timestamp: 400000005c939297