Skip to content

Commit

Permalink
Remove void pointer tests (#55)
Browse files Browse the repository at this point in the history
Dyninst doesn't handle these correctly
Co-authored-by: Tim Haines <thaines@cs.wisc.edu>
  • Loading branch information
hainest committed Jul 30, 2021
1 parent e78edb5 commit 6621b8b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
12 changes: 0 additions & 12 deletions test/source/allocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1164,16 +1164,4 @@ TEST_CASE("Register Allocation - Null Types") {
auto const& parameters = func.parameters;
CHECK(parameters.size() == 0UL);
}
SUBCASE("void") {
auto const& func = get_one(corpus, "test_ptr_void");
auto const& parameters = func.parameters;
CHECK(parameters[0].location == "%rdi");
CHECK(parameters[0].type == "Pointer");
}
SUBCASE("void") {
auto const& func = get_one(corpus, "test_ptr_ptr_void");
auto const& parameters = func.parameters;
CHECK(parameters[0].location == "%rdi");
CHECK(parameters[0].type == "Pointer");
}
}
2 changes: 0 additions & 2 deletions test/source/libs/allocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,3 @@ extern "C" void test_ptr_ptr_uint_least64_t(uint_least64_t** x){}

// Register Allocation - Null Type
extern "C" void test_void(){}
extern "C" void test_ptr_void(void* x){}
extern "C" void test_ptr_ptr_void(void** x){}
14 changes: 0 additions & 14 deletions test/source/libs/gen_allocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ def write_null_tests(test_file, func_file):
"""
// Register Allocation - Null Type
extern "C" void test_void(){}
extern "C" void test_ptr_void(void* x){}
extern "C" void test_ptr_ptr_void(void** x){}
""")

test_file.write(
Expand All @@ -199,18 +197,6 @@ def write_null_tests(test_file, func_file):
auto const& parameters = func.parameters;
CHECK(parameters.size() == 0UL);
}
SUBCASE("void") {
auto const& func = get_one(corpus, "test_ptr_void");
auto const& parameters = func.parameters;
CHECK(parameters[0].location == "%rdi");
CHECK(parameters[0].type == "Pointer");
}
SUBCASE("void") {
auto const& func = get_one(corpus, "test_ptr_ptr_void");
auto const& parameters = func.parameters;
CHECK(parameters[0].location == "%rdi");
CHECK(parameters[0].type == "Pointer");
}
}
""")

Expand Down

0 comments on commit 6621b8b

Please sign in to comment.