summaryrefslogtreecommitdiffstats
path: root/test/unit/prof_idump.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/prof_idump.c')
-rw-r--r--test/unit/prof_idump.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/test/unit/prof_idump.c b/test/unit/prof_idump.c
index 87734a4..1cc6c98 100644
--- a/test/unit/prof_idump.c
+++ b/test/unit/prof_idump.c
@@ -3,8 +3,7 @@
static bool did_prof_dump_open;
static int
-prof_dump_open_intercept(bool propagate_err, const char *filename)
-{
+prof_dump_open_intercept(bool propagate_err, const char *filename) {
int fd;
did_prof_dump_open = true;
@@ -12,11 +11,10 @@ prof_dump_open_intercept(bool propagate_err, const char *filename)
fd = open("/dev/null", O_WRONLY);
assert_d_ne(fd, -1, "Unexpected open() failure");
- return (fd);
+ return fd;
}
-TEST_BEGIN(test_idump)
-{
+TEST_BEGIN(test_idump) {
bool active;
void *p;
@@ -38,9 +36,7 @@ TEST_BEGIN(test_idump)
TEST_END
int
-main(void)
-{
-
- return (test(
- test_idump));
+main(void) {
+ return test(
+ test_idump);
}