1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

test_env: Port to LibMain

This commit is contained in:
Kenneth Myhra 2022-03-29 21:06:15 +02:00 committed by Brian Gianforcaro
parent 3df8c9e9de
commit 8bd7c5b3d5
2 changed files with 3 additions and 1 deletions

View file

@ -6,6 +6,7 @@
#include <AK/Assertions.h>
#include <AK/Format.h>
#include <LibMain/Main.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -76,7 +77,7 @@ static void test_setenv_overwrite_empty()
assert_env("EMPTYTEST", "Forcefully overwrite non-existing envvar");
}
int main(int, char**)
ErrorOr<int> serenity_main(Main::Arguments)
{
#define RUNTEST(x) \
{ \