mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Add some tests for execve()
This commit is contained in:
parent
2526a9b8c7
commit
daca5499b9
6 changed files with 81 additions and 14 deletions
|
@ -16,13 +16,14 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/errno.h"
|
||||
#include "libc/intrin/bits.h"
|
||||
#include "libc/log/check.h"
|
||||
#include "libc/math.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/lcg.internal.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/sysv/consts/grnd.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
|
@ -241,3 +242,7 @@ TEST(getrandom, sanityTest) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
TEST(getrandom, badflags_einval) {
|
||||
ASSERT_SYS(EINVAL, -1, getrandom(0, 0, -1));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue