Skip to content

Commit bd439d8

Browse files
committed
async-profiler#1132: Apply LD_PRELOAD to the test binary, not shell
1 parent cede318 commit bd439d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test/nativemem/NativememTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public void ldpreload(TestProcess p) throws Exception {
161161
assert out.contains("malloc_hook");
162162
}
163163

164-
@Test(sh = "%testbin/malloc_plt_dyn", os = Os.LINUX, env = {"LD_PRELOAD=%lib", "ASPROF_COMMAND=start,nativemem,file=%f.jfr"})
164+
@Test(sh = "LD_PRELOAD=%lib ASPROF_COMMAND=start,nativemem,file=%f.jfr %testbin/malloc_plt_dyn", os = Os.LINUX)
165165
public void malloc_plt_dyn(TestProcess p) throws Exception {
166166
Map<Long, Long> sizeCounts = assertNoLeaks(p);
167167

0 commit comments

Comments
 (0)