mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
test_env: Port to LibMain
This commit is contained in:
parent
3df8c9e9de
commit
8bd7c5b3d5
2 changed files with 3 additions and 1 deletions
|
@ -201,6 +201,7 @@ target_link_libraries(test-fuzz LibCore LibGemini LibGfx LibHTTP LibIPC LibJS Li
|
||||||
target_link_libraries(test-imap LibIMAP LibMain)
|
target_link_libraries(test-imap LibIMAP LibMain)
|
||||||
target_link_libraries(test-pthread LibThreading LibMain)
|
target_link_libraries(test-pthread LibThreading LibMain)
|
||||||
target_link_libraries(test-unveil LibMain)
|
target_link_libraries(test-unveil LibMain)
|
||||||
|
target_link_libraries(test_env LibMain)
|
||||||
target_link_libraries(timezone LibMain)
|
target_link_libraries(timezone LibMain)
|
||||||
target_link_libraries(top LibMain)
|
target_link_libraries(top LibMain)
|
||||||
target_link_libraries(touch LibMain)
|
target_link_libraries(touch LibMain)
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <AK/Assertions.h>
|
#include <AK/Assertions.h>
|
||||||
#include <AK/Format.h>
|
#include <AK/Format.h>
|
||||||
|
#include <LibMain/Main.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -76,7 +77,7 @@ static void test_setenv_overwrite_empty()
|
||||||
assert_env("EMPTYTEST", "Forcefully overwrite non-existing envvar");
|
assert_env("EMPTYTEST", "Forcefully overwrite non-existing envvar");
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int, char**)
|
ErrorOr<int> serenity_main(Main::Arguments)
|
||||||
{
|
{
|
||||||
#define RUNTEST(x) \
|
#define RUNTEST(x) \
|
||||||
{ \
|
{ \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue