summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/os/Makefile.in
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-06-04 11:23:00 -0400
committerGreg Hudson <ghudson@mit.edu>2012-06-04 11:26:45 -0400
commita1f9c18326525c2d80d7e8039e404ba7828dfd1a (patch)
treee1f10b3c8c28c6ab04c42820098a5a4bf18b776c /src/lib/krb5/os/Makefile.in
parent7c3ecf5c77e33f6d04d6226b041071c6ce23b062 (diff)
downloadkrb5-a1f9c18326525c2d80d7e8039e404ba7828dfd1a.tar.gz
krb5-a1f9c18326525c2d80d7e8039e404ba7828dfd1a.tar.xz
krb5-a1f9c18326525c2d80d7e8039e404ba7828dfd1a.zip
Fix trace log unit test
Only use common denominator Bourne shell syntax for exporting environment variables. Don't rely on /dev/stdout working. Compare the output with a reference file to detect changes, instead of just sending it to stdout.
Diffstat (limited to 'src/lib/krb5/os/Makefile.in')
-rw-r--r--src/lib/krb5/os/Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/krb5/os/Makefile.in b/src/lib/krb5/os/Makefile.in
index 9faab25ee7..7d07480147 100644
--- a/src/lib/krb5/os/Makefile.in
+++ b/src/lib/krb5/os/Makefile.in
@@ -261,8 +261,11 @@ check-unix-antoln:: t_an_to_ln
$(RM) ./t_an.*
check-unix-trace:: t_trace
- export KRB5_TRACE=/dev/stdout ; \
+ rm -f t_trace.out
+ KRB5_TRACE=t_trace.out ; export KRB5_TRACE ; \
$(KRB5_RUN_ENV) $(VALGRIND) ./t_trace
+ sed -e 's/^[^:]*: //' t_trace.out | cmp - $(srcdir)/t_trace.ref
+ rm -f t_trace.out
clean::
$(RM) $(TEST_PROGS) test.out t_std_conf.o t_an_to_ln.o t_locate_kdc.o