1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:17:45 +00:00

Lagom: Remove test apps

These are no longer useful or necessary now that a lot of different
applications run on Lagom.
This commit is contained in:
Sam Atkins 2022-12-20 13:02:22 +00:00 committed by Tim Flynn
parent c6f81b5b83
commit 3507679659
3 changed files with 0 additions and 45 deletions

View file

@ -443,13 +443,6 @@ if (BUILD_LAGOM)
# Lagom Services
add_serenity_subdirectory(Userland/Services)
# Lagom Examples
add_executable(TestApp TestApp.cpp)
target_link_libraries(TestApp LibCore)
add_executable(TestJson TestJson.cpp)
target_link_libraries(TestJson LibCore)
# Lagom Utilities
if (NOT EMSCRIPTEN)
add_executable(adjtime ../../Userland/Utilities/adjtime.cpp)

View file

@ -1,21 +0,0 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/EventLoop.h>
#include <LibCore/Timer.h>
#include <stdio.h>
int main(int, char**)
{
Core::EventLoop event_loop;
auto timer = Core::Timer::construct(100, [&] {
dbgln("Timer fired, good-bye! :^)");
event_loop.quit(0);
});
return event_loop.exec();
}

View file

@ -1,17 +0,0 @@
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/JsonObject.h>
#include <AK/JsonValue.h>
#include <stdio.h>
int main(int, char**)
{
auto value = JsonValue::from_string("{\"property\": \"value\"}"sv).release_value_but_fixme_should_propagate_errors();
printf("parsed: _%s_\n", value.to_deprecated_string().characters());
printf("object.property = '%s'\n", value.as_object().get("property"sv).to_deprecated_string().characters());
return 0;
}