summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2017-07-07 14:12:44 +0000
committerMarc Espie <espie@cvs.openbsd.org>2017-07-07 14:12:44 +0000
commitb4306a10ca34148923cc677da6cdb63f4aba6105 (patch)
tree4f5a0f9afb487f985cbfe070328b03e4d2a15132
parent0ba4ea4561471e614da27aa9d02a33081f637541 (diff)
trigger default .l.o rule and check the produced file has the right name
-rw-r--r--regress/usr.bin/make/Makefile9
-rw-r--r--regress/usr.bin/make/tok.l9
2 files changed, 15 insertions, 3 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index d6a32590183..0e4ff1f3708 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.44 2017/01/29 10:03:09 espie Exp $
+# $OpenBSD: Makefile,v 1.45 2017/07/07 14:12:43 espie Exp $
# We don't pass t7, t13, t14, t17, t19, t20 t21 t26
# and t16 yields piss poor performance
REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 \
t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 \
t25 t26 t27 t28 t29 t30 t31 t32 t33 t34 t35 t36 \
- t37 t38 t38j t39 t40 t41 t42 t43 t44 t45 t46
+ t37 t38 t38j t39 t40 t41 t42 t43 t44 t45 t46 t47
MALLOC_OPTIONS?=J
t1: t1.out
@@ -191,6 +191,9 @@ t46:
false; fi; \
fi
+t47: tok.o
+ test -f tok.o || exit 1
+
t1.out:
echo MACHINE_ARCH=${MACHINE_ARCH} >$@
@@ -198,6 +201,6 @@ t1.out:
CLEANFILES+=t1.out z.a a.a a.b mk34.b goodfile phony t15file \
t25.1st t25.2nd f26.2nd f26 t27.2nd t27.3rd \
- libt29.a t29dep t29.targ t29.targ2
+ libt29.a t29dep t29.targ t29.targ2 tok tok.o tok.d
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/make/tok.l b/regress/usr.bin/make/tok.l
new file mode 100644
index 00000000000..52350c9de3d
--- /dev/null
+++ b/regress/usr.bin/make/tok.l
@@ -0,0 +1,9 @@
+/* $OpenBSD: tok.l,v 1.1 2017/07/07 14:12:43 espie Exp $ */
+%%
+%%
+
+
+int main()
+{
+ return 0;
+}