Add some tests for execve()

This commit is contained in:
Justine Tunney 2022-10-02 14:58:14 -07:00
parent 2526a9b8c7
commit daca5499b9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 81 additions and 14 deletions

View file

@ -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));
}