Skip to content

Commit

Permalink
fix: fix broken lives fn
Browse files Browse the repository at this point in the history
  • Loading branch information
exbotanical committed Apr 10, 2024
1 parent a4d903d commit 86f01f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clib.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libtap",
"version": "0.0.3",
"version": "0.0.4",
"author": "Matthew Zito",
"repo": "exbotanical/libtap",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions include/libtap.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#ifndef LIBTAP_H
#define LIBTAP_H

#include <stdlib.h>
#include <sys/mman.h>
#include <sys/param.h>
#include <sys/wait.h>
#include <unistd.h>

#include "libutil/libutil.h"
Expand Down Expand Up @@ -96,6 +98,9 @@ unsigned int bail_out(const char* fmt, ...);
} \
/* grab prev value (and reset) - if 0, code succeeded */ \
int test_died = __write_shared_mem(0); \
if (!test_died) { \
code \
} \
__ok( \
wants_death ? test_died : !test_died, \
__func__, \
Expand Down

0 comments on commit 86f01f1

Please sign in to comment.