make test fails

John Dejournett johnde at greeley.sykes.com
Fri Mar 10 14:51:58 EST 2000


Brian,

I tried running the t0001 test, but the only output was "tds failed! on
t0001.c".

This inspired me to do a little debugging on the test source.  The first
thing I discovered is that in freetds/src/tds/util.c, line 245 there is a
test to determine if the interfaces file is present.  For some reason
interf_file = \000, and the test failed.  Because of this, the interfaces
file was never being read.  As a temporary workaround for this I copied the
/usr/local/freetds/interfaces file to ~/.interfaces.  This did work to get
the server IP and port numbers.  Anyone who knows how to fix this, I would
greatly appreciate a suggestion.

Now back to the main issue.  After some further debugging the t0001 program
is connecting to the server.  It sends login information, but apparently the
login fails.  It also appears that there is a log file that tracks these
transactions with the server.  If anyone knows where that file is and what
it is called, this may contain some useful information on exactly what the
error is.

Finally, another note for the implementers:  not that I don't appreciate
having the libraries already  compiled with the debugging information, but
to make the libraries as small as possible I would suggest having a switch
in the configure options to enable or disable debugging.

Sincerely,
John DeJournett



		-----Original Message-----
		From:	Brian Bruns [mailto:camber at umcc.ais.org]
		Sent:	Thursday, March 09, 2000 5:22 PM
		To:	TDS Development Group
		Subject:	[freetds] Re: make test fails


		try running one of the example programs and see what the
error is.

		[camber at localhost freetds]$ cd src/tds/unittests
		[camber at localhost unittests]$ make
		[camber at localhost unittests]$ ./t0001

		Brian

		On Thu, 9 Mar 2000, John Dejournett wrote:

		> Michael,
		> 
		> Thanks for the suggestion.  It is a start, but make test
still fails every
		> test.  The PWD file now contains entries for my login
name, password, the
		> server entry name from /usr/local/freetds/interfaces, and
the database name.
		> I doubt that it would make any difference, but I am
running configure with
		> the -with-tdsver=4.2 parameter, and the database I am
using in interfaces is
		> an MS-SQL server.
		> 
		> I did not notice anything in the install file or
documentation for editing
		> the PWD, so that would be a good note for the
implementers/maintainers.  Any
		> other ideas to get these tests working would be greatly
appreciated.
		> 
		> Sincerely,
		> John DeJournett
		> 
		> 		-----Original Message-----
		> 		From:	Michael Suedkamp
[mailto:ms at suedkm.franken.de]
		> 		Sent:	Wednesday, March 08, 2000 6:01 PM
		> 		To:	TDS Development Group
		> 		Subject:	[freetds] Re: make test
fails
		> 
		> 		Have you adapted the PWD file?
		> 
		> 		Michael
		> 
		> 		---
		> 		You are currently subscribed to freetds as:
		> johnde at greeley.sykes.com
		> 		To unsubscribe, forward this message to
		> $subst('Email.Unsub')
		> 
		> ---
		> You are currently subscribed to freetds as: camber at ais.org
		> To unsubscribe, forward this message to
$subst('Email.Unsub')
		> 
		> 


		---
		You are currently subscribed to freetds as:
johnde at greeley.sykes.com
		To unsubscribe, forward this message to
$subst('Email.Unsub')



More information about the FreeTDS mailing list