summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/setjmp-fpu/setjmp.c
diff options
context:
space:
mode:
authorbluhm <>2020-01-13 14:58:38 +0000
committerbluhm <>2020-01-13 14:58:38 +0000
commit996be56cf768b80e4785865e699cef34a00a6000 (patch)
treeb5804ea3ccdb375c0f26e1b98ed973b8754149c5 /src/regress/lib/libc/setjmp-fpu/setjmp.c
parent23772d25ea2d9f0c22b6fcc0ea8e281694436352 (diff)
downloadopenbsd-996be56cf768b80e4785865e699cef34a00a6000.tar.gz
openbsd-996be56cf768b80e4785865e699cef34a00a6000.tar.bz2
openbsd-996be56cf768b80e4785865e699cef34a00a6000.zip
Split setjmp-fpu regress into separate tests. Use errx(3) to explain
potential problems. Regress still failing on amd64.
Diffstat (limited to 'src/regress/lib/libc/setjmp-fpu/setjmp.c')
-rw-r--r--src/regress/lib/libc/setjmp-fpu/setjmp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/regress/lib/libc/setjmp-fpu/setjmp.c b/src/regress/lib/libc/setjmp-fpu/setjmp.c
index 48d72056d0..e12731da37 100644
--- a/src/regress/lib/libc/setjmp-fpu/setjmp.c
+++ b/src/regress/lib/libc/setjmp-fpu/setjmp.c
@@ -1,4 +1,13 @@
1/* $OpenBSD: setjmp.c,v 1.3 2015/11/08 18:10:14 miod Exp $ */ 1/* $OpenBSD: setjmp.c,v 1.4 2020/01/13 14:58:38 bluhm Exp $ */
2
3int test_setjmp(void);
4
5int
6main(int argc, char *argv[])
7{
8 return test_setjmp();
9}
10
2#define SETJMP(env, savemask) setjmp(env) 11#define SETJMP(env, savemask) setjmp(env)
3#define LONGJMP(env, val) longjmp(env, val) 12#define LONGJMP(env, val) longjmp(env, val)
4#define TEST_SETJMP test_setjmp 13#define TEST_SETJMP test_setjmp