summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2018-04-27 09:07:16 +0000
committerbeck <beck@openbsd.org>2018-04-27 09:07:16 +0000
commite403ac13888f9a606b52e02d0c50d1a981ab4b8f (patch)
tree45c0300a381d45011d6e45ff7126929d736bd508
parentvmd(8): allow counter state readback via misc port for square wave mode (diff)
downloadwireguard-openbsd-e403ac13888f9a606b52e02d0c50d1a981ab4b8f.tar.xz
wireguard-openbsd-e403ac13888f9a606b52e02d0c50d1a981ab4b8f.zip
remove references to O flags in test messages
-rw-r--r--regress/sys/kern/pledge/pledgepath/syscalls.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/regress/sys/kern/pledge/pledgepath/syscalls.c b/regress/sys/kern/pledge/pledgepath/syscalls.c
index 69b8d46aa84..f62447d144f 100644
--- a/regress/sys/kern/pledge/pledgepath/syscalls.c
+++ b/regress/sys/kern/pledge/pledgepath/syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscalls.c,v 1.17 2018/04/26 18:11:12 beck Exp $ */
+/* $OpenBSD: syscalls.c,v 1.18 2018/04/27 09:07:16 beck Exp $ */
/*
* Copyright (c) 2017 Bob Beck <beck@openbsd.org>
@@ -218,7 +218,7 @@ test_open(int do_pp)
PP_SHOULD_SUCCEED((open(pp_file1, O_RDONLY) == -1), "open");
PP_SHOULD_FAIL((open(pp_file2, O_RDWR) == -1), "open");
if (do_pp) {
- printf("testing O_RDONLY\n");
+ printf("testing \"r\"\n");
if (pledgepath(pp_file1, "r") == -1)
err(1, "%s:%d - pledgepath", __FILE__, __LINE__);
}
@@ -226,7 +226,7 @@ test_open(int do_pp)
PP_SHOULD_FAIL((open(pp_file2, O_RDWR) == -1), "open");
if (do_pp) {
- printf("testing O_RDWR\n");
+ printf("testing \"rw\"\n");
if (pledgepath(pp_file1, "rw") == -1)
err(1, "%s:%d - pledgepath", __FILE__, __LINE__);
}
@@ -234,7 +234,7 @@ test_open(int do_pp)
PP_SHOULD_SUCCEED((open(pp_file1, O_RDWR) == -1), "open");
if (do_pp) {
- printf("testing O_EXEC\n");
+ printf("testing \"x\"\n");
if (pledgepath(pp_file1, "x") == -1)
err(1, "%s:%d - pledgepath", __FILE__, __LINE__);
}
@@ -490,7 +490,7 @@ test_symlink(int do_pp)
unlink(filename);
if (do_pp) {
- printf("testing symlink without O_CREAT\n");
+ printf("testing symlink with \"rw\"\n");
if (pledgepath(filename, "rw") == -1)
err(1, "%s:%d - pledgepath", __FILE__, __LINE__);
}
@@ -520,7 +520,7 @@ test_exec(int do_pp)
char *argv[] = {"/usr/bin/true", NULL};
extern char **environ;
if (do_pp) {
- printf("testing execve with O_EXEC only\n");
+ printf("testing execve with \"x\"\n");
if (pledgepath("/usr/bin/true", "x") == -1)
err(1, "%s:%d - pledgepath", __FILE__, __LINE__);
}
@@ -534,7 +534,7 @@ test_exec2(int do_pp)
char *argv[] = {"/usr/bin/true", NULL};
extern char **environ;
if (do_pp) {
- printf("testing execve without O_EXEC\n");
+ printf("testing execve with \"rw\"\n");
if (pledgepath("/usr/bin/true", "rw") == -1)
err(1, "%s:%d - pledgepath", __FILE__, __LINE__);
}