Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlig committed Sep 29, 2024
1 parent 5201ce0 commit fb75197
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions attach/frida_uprobe_attach_impl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ set(TEST_SOURCES
test/test_filter_attach_with_override.cpp
test/test_replace_attach_with_override.cpp
test/test_attach_with_unified_interface.cpp
test/test_attach_private_data_parsing.cpp
)
add_executable(bpftime_frida_uprobe_attach_tests ${TEST_SOURCES})

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <catch2/catch_test_macros.hpp>
#include <cerrno>
#include <memory>
#include <frida_attach_private_data.hpp>
using namespace bpftime;

TEST_CASE("Test illegal parsing")
{
SECTION("Test bad strings")
{
auto priv = std::make_unique<
bpftime::attach::frida_attach_private_data>();
REQUIRE(priv->initialize_from_string("aaa:") == -EINVAL);
}
}

0 comments on commit fb75197

Please sign in to comment.