Minor addition to renode tests. PiperOrigin-RevId: 663809597 Change-Id: I9321d2de35df5f77a4b329cb31f5fd1f9c823460
diff --git a/riscv/test/librenode_mpact_riscv32_so_test.cc b/riscv/test/librenode_mpact_riscv32_so_test.cc index 138bba5..9924ccd 100644 --- a/riscv/test/librenode_mpact_riscv32_so_test.cc +++ b/riscv/test/librenode_mpact_riscv32_so_test.cc
@@ -24,6 +24,7 @@ std::string path = absl::StrCat(kDepotPath, kFileName); absl::LeakCheckDisabler disabler; // Ignore leaks from dlopen. lib_ = dlopen(path.c_str(), RTLD_LAZY); + CHECK_NE(lib_, nullptr); } ~LibRenodeMpactRiscV32SoTest() { dlclose(lib_); }
diff --git a/riscv/test/librenode_mpact_riscv64_so_test.cc b/riscv/test/librenode_mpact_riscv64_so_test.cc index e7724ff..ad9827f 100644 --- a/riscv/test/librenode_mpact_riscv64_so_test.cc +++ b/riscv/test/librenode_mpact_riscv64_so_test.cc
@@ -24,6 +24,7 @@ std::string path = absl::StrCat(kDepotPath, kFileName); absl::LeakCheckDisabler disabler; // Ignore leaks from dlopen. lib_ = dlopen(path.c_str(), RTLD_LAZY); + CHECK_NE(lib_, nullptr); } ~LibRenodeMpactRiscV64SoTest() { dlclose(lib_); }