Home | History | Annotate | Download | only in tests

Lines Matching refs:dlerror

36   dlerror(); // Clear any pending errors.
39 ASSERT_TRUE(dlerror() == NULL);
57 ASSERT_STREQ("dlopen failed: library \"/does/not/exist\" not found", dlerror());
59 ASSERT_STREQ("/does/not/exist: cannot open shared object file: No such file or directory", dlerror());
65 return reinterpret_cast<void*>(strdup(dlerror()));
70 const char* main_thread_error = dlerror();
85 dlerror(); // Clear any pending errors.
88 ASSERT_TRUE(dlerror() == NULL);
96 ASSERT_SUBSTR("dlsym library handle is null", dlerror());
98 ASSERT_SUBSTR("undefined symbol: test", dlerror()); // glibc isn't specific about the failure.
106 ASSERT_SUBSTR("", dlerror());
112 ASSERT_SUBSTR("undefined symbol: ThisSymbolDoesNotExist", dlerror());
118 dlerror(); // Clear any pending errors.
121 ASSERT_TRUE(dlerror() == NULL);
180 dlerror(); // Clear any pending errors.
184 ASSERT_TRUE(dlerror() == NULL); // dladdr(3) doesn't set dlerror(3).
188 ASSERT_TRUE(dlerror() == NULL); // dladdr(3) doesn't set dlerror(3).
197 dlerror(); // Clear any pending errors.
200 ASSERT_STREQ("dlopen failed: empty/missing DT_HASH in \"no-elf-hash-table-library.so\" (built with --hash-style=gnu?)", dlerror());
206 dlerror(); // Clear any pending errors.
213 ASSERT_SUBSTR("invalid", dlerror());
218 ASSERT_SUBSTR("invalid", dlerror());
223 ASSERT_SUBSTR(NULL, dlerror());