Skip to content

Commit

Permalink
Fixup tests
Browse files Browse the repository at this point in the history
Signed-off-by: Martynas Gurskas <[email protected]>
  • Loading branch information
Lipt0nas committed Feb 8, 2024
1 parent c4b0de6 commit 1f52a97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindgen/src/bindings/cpp/templates/wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ R rust_call(F f, EF error_cb, Args... args) {
{%- for func in ci.function_definitions() %}
{% include "fn_def.cpp" %}
{% endfor -%}
} // namespace {{ namespace }}
} // namespace {{ namespace }}
2 changes: 1 addition & 1 deletion cpp-tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ target_include_directories(uniffi_${TEST_NAME} PRIVATE scaffolding_tests/${TEST_

add_executable(${TEST_NAME}-scaffolding-test scaffolding_tests/${TEST_NAME}/main.cpp ${BINDINGS_SRC_DIR}/${TEST_NAME}.cpp)
target_include_directories(${TEST_NAME}-scaffolding-test PRIVATE ${BINDINGS_SRC_DIR} include)
target_link_libraries(${TEST_NAME}-scaffolding-test uniffi_${TEST_NAME})
target_link_libraries(${TEST_NAME}-scaffolding-test uniffi_${TEST_NAME} Threads::Threads)

add_test(NAME ${TEST_NAME}-scaffolding-test COMMAND ${TEST_NAME}-scaffolding-test)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <chrono>
#include <optional>
#include <string>

namespace {
namespace chronological {
Expand Down Expand Up @@ -28,4 +29,4 @@ namespace {

timestamp set_seconds_before_unix_epoch(uint64_t seconds);
}
}
}

0 comments on commit 1f52a97

Please sign in to comment.