Compare commits
No commits in common. "963032617e2053aeb2e55b63a531abff2baddd17" and "6e838afbabcc8425162c6e6ae5f39eca744d88f8" have entirely different histories.
963032617e
...
6e838afbab
2 changed files with 7 additions and 5 deletions
|
|
@ -6,6 +6,9 @@
|
||||||
using namespace lt;
|
using namespace lt;
|
||||||
using std::ignore;
|
using std::ignore;
|
||||||
using test::Case;
|
using test::Case;
|
||||||
|
using test::expect_eq;
|
||||||
|
using test::expect_ne;
|
||||||
|
using test::expect_not_nullptr;
|
||||||
using test::expect_throw;
|
using test::expect_throw;
|
||||||
using test::expect_true;
|
using test::expect_true;
|
||||||
using test::Suite;
|
using test::Suite;
|
||||||
|
|
@ -72,7 +75,7 @@ struct RendererContext
|
||||||
|
|
||||||
Suite raii = [] {
|
Suite raii = [] {
|
||||||
Case { "happy path won't throw" } = [&] {
|
Case { "happy path won't throw" } = [&] {
|
||||||
ignore = create_system();
|
std::ignore = create_system();
|
||||||
};
|
};
|
||||||
|
|
||||||
Case { "happy path has no validation errors" } = [&] {
|
Case { "happy path has no validation errors" } = [&] {
|
||||||
|
|
@ -88,7 +91,7 @@ Suite raii = [] {
|
||||||
auto stats = create_ref<app::SystemStats>();
|
auto stats = create_ref<app::SystemStats>();
|
||||||
|
|
||||||
expect_throw([&] {
|
expect_throw([&] {
|
||||||
ignore = System(
|
std::ignore = System(
|
||||||
{
|
{
|
||||||
.registry = {},
|
.registry = {},
|
||||||
.surface_entity = surface_entity,
|
.surface_entity = surface_entity,
|
||||||
|
|
@ -98,7 +101,7 @@ Suite raii = [] {
|
||||||
});
|
});
|
||||||
|
|
||||||
expect_throw([&] {
|
expect_throw([&] {
|
||||||
ignore = System(
|
std::ignore = System(
|
||||||
System::CreateInfo {
|
System::CreateInfo {
|
||||||
.registry = surface_entity.get_registry(),
|
.registry = surface_entity.get_registry(),
|
||||||
.surface_entity = empty_entity,
|
.surface_entity = empty_entity,
|
||||||
|
|
@ -108,7 +111,7 @@ Suite raii = [] {
|
||||||
});
|
});
|
||||||
|
|
||||||
expect_throw([&] {
|
expect_throw([&] {
|
||||||
ignore = System(
|
std::ignore = System(
|
||||||
System::CreateInfo {
|
System::CreateInfo {
|
||||||
.registry = surface_entity.get_registry(),
|
.registry = surface_entity.get_registry(),
|
||||||
.surface_entity = surface_entity,
|
.surface_entity = surface_entity,
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,6 @@ void System::on_surface_construct(ecs::Registry ®istry, ecs::EntityId entity)
|
||||||
ensure(display_env != nullptr, "DISPLAY env var not found!");
|
ensure(display_env != nullptr, "DISPLAY env var not found!");
|
||||||
|
|
||||||
auto *display = XOpenDisplay(display_env);
|
auto *display = XOpenDisplay(display_env);
|
||||||
ensure(display, "Failed to open XDisplay with DISPLAY: {}", display_env);
|
|
||||||
|
|
||||||
auto root_window = XDefaultRootWindow(display);
|
auto root_window = XDefaultRootWindow(display);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue