similarity index 72%
rename from tests/libs/dlopen_testlib_invalid.cpp
rename to tests/libs/dlopen_testlib_loopy_invalid.cpp
index f2039c646d6272180a0076033c116759d0fa09d5..5aa11f87a8e51b9334d0b447f53e4f905629bbf4 100644 (file)
rename from tests/libs/dlopen_testlib_invalid.cpp
rename to tests/libs/dlopen_testlib_loopy_invalid.cpp
index f2039c646d6272180a0076033c116759d0fa09d5..5aa11f87a8e51b9334d0b447f53e4f905629bbf4 100644 (file)
#include <stdlib.h>
-// This file is used for libraries that are not supposed to
-// be successfully loaded/linked - therefore, this function should
-// not be visible via dlsym - (we are going to use this fact in tests)
-extern "C" int dlopen_test_invalid_function() {
+// This library should never be loaded
+static void __attribute__((constructor)) panic() {
abort();
}
+