Add fixups for previous change

This commit is contained in:
Justine Tunney 2022-06-27 15:00:51 -07:00
parent 3c92adfd6e
commit 5297897ba1
47 changed files with 68 additions and 15 deletions

View file

@ -33,8 +33,8 @@ STATIC_YOINK("apetest2.com");
char testlib_enable_tmp_setup_teardown_once;
__attribute__((__constructor__)) static void init(void) {
// TODO(jart): What's up with RHEL5 / RHEL7?
// pledge("stdio rpath wpath cpath tty proc exec", 0);
pledge("stdio rpath wpath cpath tty proc exec", 0);
errno = 0;
}
void Extract(const char *from, const char *to, int mode) {

View file

@ -23,6 +23,7 @@
__attribute__((__constructor__)) static void init(void) {
pledge("stdio rpath", 0);
errno = 0;
}
TEST(arch_prctl, fs) {

View file

@ -44,6 +44,7 @@ _Atomic(int) thechilde;
__attribute__((__constructor__)) static void init(void) {
pledge("stdio rpath thread", 0);
errno = 0;
}
void SetUp(void) {

View file

@ -31,6 +31,7 @@
__attribute__((__constructor__)) static void init(void) {
pledge("stdio rpath proc", 0);
errno = 0;
}
TEST(fork, testPipes) {

View file

@ -33,6 +33,7 @@
__attribute__((__constructor__)) static void init(void) {
pledge("stdio rpath", 0);
errno = 0;
}
static bool AreMemoryIntervalsEqual(const struct MemoryIntervals *mm1,

View file

@ -50,6 +50,7 @@ char testlib_enable_tmp_setup_teardown;
__attribute__((__constructor__)) static void init(void) {
pledge("stdio rpath wpath cpath proc", 0);
errno = 0;
}
TEST(mmap, zeroSize) {