From 974fca6fbe75ff39f91dda114a3b06f686c68f34 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 28 Jan 2007 19:10:07 +0000 Subject: Move test in its own directory. --- regress/misc/exceptions/Makefile | 7 ++----- regress/misc/exceptions/exceptions.cc | 19 ------------------- regress/misc/exceptions/simple/Makefile | 6 ++++++ regress/misc/exceptions/simple/exceptions.cc | 19 +++++++++++++++++++ 4 files changed, 27 insertions(+), 24 deletions(-) delete mode 100644 regress/misc/exceptions/exceptions.cc create mode 100644 regress/misc/exceptions/simple/Makefile create mode 100644 regress/misc/exceptions/simple/exceptions.cc diff --git a/regress/misc/exceptions/Makefile b/regress/misc/exceptions/Makefile index af6a22ff04b..d4d1d960d66 100644 --- a/regress/misc/exceptions/Makefile +++ b/regress/misc/exceptions/Makefile @@ -1,6 +1,3 @@ -# $OpenBSD: Makefile,v 1.1 2002/12/04 05:02:15 art Exp $ +SUBDIR+= simple -PROG= exceptions -SRCS= exceptions.cc - -.include +.include diff --git a/regress/misc/exceptions/exceptions.cc b/regress/misc/exceptions/exceptions.cc deleted file mode 100644 index 273a88a287e..00000000000 --- a/regress/misc/exceptions/exceptions.cc +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: exceptions.cc,v 1.1 2002/12/04 05:02:15 art Exp $ */ -/* - * Written by Artur Grabowski 2002 Public Domain - */ - -#include - -int -main() -{ - try { - throw("foo"); - } - catch(const char *p) { - if (!strcmp(p, "foo")) - return (0); - } - return (1); -} diff --git a/regress/misc/exceptions/simple/Makefile b/regress/misc/exceptions/simple/Makefile new file mode 100644 index 00000000000..9008d189a70 --- /dev/null +++ b/regress/misc/exceptions/simple/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2007/01/28 19:10:06 kettenis Exp $ + +PROG= exceptions +SRCS= exceptions.cc + +.include diff --git a/regress/misc/exceptions/simple/exceptions.cc b/regress/misc/exceptions/simple/exceptions.cc new file mode 100644 index 00000000000..35a619500b0 --- /dev/null +++ b/regress/misc/exceptions/simple/exceptions.cc @@ -0,0 +1,19 @@ +/* $OpenBSD: exceptions.cc,v 1.1 2007/01/28 19:10:06 kettenis Exp $ */ +/* + * Written by Artur Grabowski 2002 Public Domain + */ + +#include + +int +main() +{ + try { + throw("foo"); + } + catch(const char *p) { + if (!strcmp(p, "foo")) + return (0); + } + return (1); +} -- cgit v1.2.3