aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-24 03:19:37 +0200
committerDuncaen <mail@duncano.de>2017-05-24 03:20:11 +0200
commitb7f18462476858d1fb76f3e204d7469734f1d264 (patch)
treeac27c40c8d8929afed469ceb87b4fa68f612c9cc
parentfad0fdb975c588cf38eeb9edf64055614d6672b0 (diff)
downloadlobase-b7f18462476858d1fb76f3e204d7469734f1d264.tar.gz
bin/test: update to OPENBSD_6_1
-rw-r--r--bin/test/test.19
-rw-r--r--bin/test/test.c7
2 files changed, 11 insertions, 5 deletions
diff --git a/bin/test/test.1 b/bin/test/test.1
index cd015de..6af8fcb 100644
--- a/bin/test/test.1
+++ b/bin/test/test.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: test.1,v 1.32 2015/11/06 21:56:46 jmc Exp $
+.\" $OpenBSD: test.1,v 1.33 2016/08/16 18:51:25 schwarze Exp $
.\" $NetBSD: test.1,v 1.6 1995/03/21 07:04:03 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)test.1 8.1 (Berkeley) 5/31/93
.\"
-.Dd $Mdocdate: November 6 2015 $
+.Dd $Mdocdate: August 16 2016 $
.Dt TEST 1
.Os
.Sh NAME
@@ -355,3 +355,8 @@ as part of X/Open System Interfaces and obsolete.
also exists as a built-in to
.Xr ksh 1 ,
though with a different syntax.
+.Sh HISTORY
+A
+.Nm
+utility appeared in
+.At v7 .
diff --git a/bin/test/test.c b/bin/test/test.c
index f146247..e6ef69c 100644
--- a/bin/test/test.c
+++ b/bin/test/test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test.c,v 1.16 2016/01/13 13:13:04 gsoares Exp $ */
+/* $OpenBSD: test.c,v 1.17 2017/01/21 11:03:42 krw Exp $ */
/* $NetBSD: test.c,v 1.15 1995/03/21 07:04:06 cgd Exp $ */
/*
@@ -150,7 +150,7 @@ static int getn(const char *s);
static int newerf(const char *, const char *);
static int olderf(const char *, const char *);
static int equalf(const char *, const char *);
-static void syntax(const char *op, char *msg);
+static __dead void syntax(const char *op, char *msg);
int
main(int argc, char *argv[])
@@ -331,7 +331,8 @@ binop(void)
case FILEQ:
return equalf(opnd1, opnd2);
}
- /* NOTREACHED */
+
+ syntax(op->op_text, "not a binary operator");
}
static enum token