diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2006-10-13 23:54:24 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2006-10-13 23:54:24 +0000 |
| commit | 2720291460e1e211be215fddb8096e3ed1d9bb28 (patch) | |
| tree | b4756498450fc19aba40eb171dbffb91791a9582 /src/tests/threads | |
| parent | c59d1c439d08bde8e10f6a9e73ad753f7968503c (diff) | |
| download | krb5-2720291460e1e211be215fddb8096e3ed1d9bb28.tar.gz krb5-2720291460e1e211be215fddb8096e3ed1d9bb28.tar.xz krb5-2720291460e1e211be215fddb8096e3ed1d9bb28.zip | |
Use $(VALGRIND) when running programs using $(KRB5_RUN_ENV) or
$(RUN_SETUP). Replaces old hack with MAYBE_VALGRIND added to RUN_ENV
in a way that would break in some of the tests.
Set VALGRIND in site.exp in tests/dejagnu. (Not used yet.)
Runs some shell scripts under valgrind, rather than changing them to
run only the executables under valgrind; this is mostly okay, just
creates lots of extra log data, and requires --trace-children=yes.
This should work for any instrumentation program invocation that gets
followed immediately by the name and argument list for the program
being instrumented. For example, VALGRIND="env LD_PRELOAD=..." should
work, though I haven't tested it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18699 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/threads')
| -rw-r--r-- | src/tests/threads/Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/threads/Makefile.in b/src/tests/threads/Makefile.in index 5386d00e1..b6da0b087 100644 --- a/src/tests/threads/Makefile.in +++ b/src/tests/threads/Makefile.in @@ -13,7 +13,7 @@ all:: N = 4 run-t_rcache: t_rcache - $(RUN_SETUP) ./t_rcache -n $(N) + $(RUN_SETUP) $(VALGRIND) ./t_rcache -n $(N) t_rcache: t_rcache.o $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o t_rcache t_rcache.o $(KRB5_BASE_LIBS) $(THREAD_LINKOPTS) @@ -22,7 +22,7 @@ syms: syms.o $(CC_LINK) -o syms syms.o run-syms: syms - $(RUN_SETUP) ./syms + $(RUN_SETUP) $(VALGRIND) ./syms prof1: prof1.o $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o prof1 prof1.o $(KRB5_BASE_LIBS) $(THREAD_LINKOPTS) |
