clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -43,36 +43,28 @@
#include "config.h"
#include "test.h"
static
void
open_badflags(void)
{
int fd;
static void open_badflags(void) {
int fd;
report_begin("open null: with bad flags");
fd = open("null:", 309842);
report_check(fd, errno, EINVAL);
report_begin("open null: with bad flags");
fd = open("null:", 309842);
report_check(fd, errno, EINVAL);
}
static
void
open_empty(void)
{
int rv;
static void open_empty(void) {
int rv;
report_begin("open empty string");
rv = open("", O_RDONLY);
report_check(rv, errno, EINVAL);
if (rv>=0) {
close(rv);
}
report_begin("open empty string");
rv = open("", O_RDONLY);
report_check(rv, errno, EINVAL);
if (rv >= 0) {
close(rv);
}
}
void
test_open(void)
{
test_open_path();
void test_open(void) {
test_open_path();
open_badflags();
open_empty();
open_badflags();
open_empty();
}