+2002-11-11 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (unit-test-body): Set RPC_TEST_SRVTAB based on
+ process-id. Set trap handler to delete it before returning an
+ exit status.
+ (unit-test-cleanup): Don't delete files here.
+
2002-11-07 Tom Yu <tlyu@mit.edu>
* rpc_test.0/expire.exp (overlap): Add another call to
PASS=@PASS@
unit-test-body:
- RPC_TEST_SRVTAB=/tmp/rpc_test_v5srvtab $(ENV_SETUP) \
+ RPC_TEST_SRVTAB=/tmp/rpc_test_v5srvtab.$$$$ ; export RPC_TEST_SRVTAB ; \
+ trap "rm -f $$RPC_TEST_SRVTAB ; exit 1" 0 1 2 3 14 15 ; \
+ if $(ENV_SETUP) \
$(RUNTEST) SERVER=./server CLIENT=./client \
KINIT=$(BUILDTOP)/clients/kinit/kinit \
KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy \
- PASS="$(PASS)" --tool rpc_test $(RUNTESTFLAGS)
+ PASS="$(PASS)" --tool rpc_test $(RUNTESTFLAGS) ; \
+ then rm -f $$RPC_TEST_SRVTAB ; trap 0 ; exit 0 ; \
+ else rm -f $$RPC_TEST_SRVTAB ; exit 1 ; fi
unit-test-setup::
$(ENV_SETUP) $(START_SERVERS)
unit-test-cleanup::
$(ENV_SETUP) $(STOP_SERVERS)
- -rm -f /tmp/rpc_test_v5srvtab /tmp/krb5cc_rpc_test_fullrun
+# -rm -f /tmp/rpc_test_v5srvtab /tmp/krb5cc_rpc_test_fullrun
clean::
$(RM) server client