diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-06-04 11:23:00 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-06-04 11:26:45 -0400 |
commit | a1f9c18326525c2d80d7e8039e404ba7828dfd1a (patch) | |
tree | e1f10b3c8c28c6ab04c42820098a5a4bf18b776c /src/lib/krb5/os/Makefile.in | |
parent | 7c3ecf5c77e33f6d04d6226b041071c6ce23b062 (diff) | |
download | krb5-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.in | 5 |
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 |