mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 08:48:29 +00:00
Add fixups for previous change
This commit is contained in:
parent
3c92adfd6e
commit
5297897ba1
47 changed files with 68 additions and 15 deletions
|
@ -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) {
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
__attribute__((__constructor__)) static void init(void) {
|
||||
pledge("stdio rpath", 0);
|
||||
errno = 0;
|
||||
}
|
||||
|
||||
TEST(arch_prctl, fs) {
|
||||
|
|
|
@ -44,6 +44,7 @@ _Atomic(int) thechilde;
|
|||
|
||||
__attribute__((__constructor__)) static void init(void) {
|
||||
pledge("stdio rpath thread", 0);
|
||||
errno = 0;
|
||||
}
|
||||
|
||||
void SetUp(void) {
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
__attribute__((__constructor__)) static void init(void) {
|
||||
pledge("stdio rpath proc", 0);
|
||||
errno = 0;
|
||||
}
|
||||
|
||||
TEST(fork, testPipes) {
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
__attribute__((__constructor__)) static void init(void) {
|
||||
pledge("stdio rpath", 0);
|
||||
errno = 0;
|
||||
}
|
||||
|
||||
static bool AreMemoryIntervalsEqual(const struct MemoryIntervals *mm1,
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue