From 68c4b05c268cd6e358cc41c8feb44bc2c7fcb898 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sun, 3 Jun 2018 16:47:33 -0700 Subject: Fix loading of server programs in tests The eval was hiding all error messages when the test didn't work properly, and C_TAP_SOURCE doesn't have the generated version with the proper path to Perl. --- tests/server/backend-t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/server/backend-t') diff --git a/tests/server/backend-t b/tests/server/backend-t index de59458..fb7d97b 100755 --- a/tests/server/backend-t +++ b/tests/server/backend-t @@ -190,7 +190,7 @@ $INC{'Wallet/Server.pm'} = 'FAKE'; my $OUTPUT; our $SYSLOG = \$OUTPUT; my $INPUT = ''; -eval { do "$ENV{C_TAP_SOURCE}/../server/wallet-backend" }; +do "$ENV{C_TAP_BUILD}/../server/wallet-backend"; # Run the wallet backend. This fun hack takes advantage of the fact that the # wallet backend is written in Perl so that we can substitute our own -- cgit v1.2.3