summaryrefslogtreecommitdiff
path: root/tests/dlext_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dlext_test.cpp')
-rw-r--r--tests/dlext_test.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/dlext_test.cpp b/tests/dlext_test.cpp
index eed84a4c1..67ebf37df 100644
--- a/tests/dlext_test.cpp
+++ b/tests/dlext_test.cpp
@@ -134,10 +134,7 @@ TEST_F(DlExtTest, ExtInfoUseFdWithOffset) {
ZipArchiveHandle handle;
ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle));
ZipEntry zip_entry;
- ZipString zip_name;
- zip_name.name = reinterpret_cast<const uint8_t*>(kLibZipSimpleZip);
- zip_name.name_length = strlen(kLibZipSimpleZip);
- ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry));
+ ASSERT_EQ(0, FindEntry(handle, kLibZipSimpleZip, &zip_entry));
extinfo.library_fd_offset = zip_entry.offset;
CloseArchive(handle);