mirror of
https://github.com/verilator/verilator.git
synced 2025-05-02 21:46:54 +00:00
Tests: Fix object order dependence, bug1611.
This commit is contained in:
parent
f63dfd7028
commit
a86e1953eb
@ -215,7 +215,7 @@ int main(int argc, char** argv, char** env) {
|
|||||||
|
|
||||||
// Load and initialize the PLI application
|
// Load and initialize the PLI application
|
||||||
{
|
{
|
||||||
void* lib = dlopen("./obj_vlt/t_vpi_time_cb/libvpi.so", RTLD_LAZY);
|
void* lib = dlopen(STRINGIFY(TEST_OBJ_DIR) "/libvpi.so", RTLD_LAZY);
|
||||||
void* bootstrap = dlsym(lib, "vpi_compat_bootstrap");
|
void* bootstrap = dlsym(lib, "vpi_compat_bootstrap");
|
||||||
((void (*)(void))bootstrap)();
|
((void (*)(void))bootstrap)();
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ int main(int argc, char** argv, char** env) {
|
|||||||
|
|
||||||
// Load and initialize the PLI application
|
// Load and initialize the PLI application
|
||||||
{
|
{
|
||||||
void* lib = dlopen("./obj_vlt/t_vpi_zero_time_cb/libvpi.so", RTLD_LAZY);
|
void* lib = dlopen(STRINGIFY(TEST_OBJ_DIR) "/libvpi.so", RTLD_LAZY);
|
||||||
void* bootstrap = dlsym(lib, "vpi_compat_bootstrap");
|
void* bootstrap = dlsym(lib, "vpi_compat_bootstrap");
|
||||||
((void (*)(void))bootstrap)();
|
((void (*)(void))bootstrap)();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user