brthanmathwoag/sqlite-inet

Error message has changed in self-test

Opened this issue · 0 comments

Hi;
Minor nuisance bug: sometime in the past 6 years, SQLite's error messages changed a bit:

$ sudo yum install sqlite-devel
...
sqlite-devel-3.40.0-1.fc37.x86_64.rpm
...

$ make
gcc -Wall -g -fPIC -shared inet.c -o bin/inet.so

$ make test

./testsuite.sh
inet_ntoa and inet_aton are inverse	-	OK
inet_aton converts valid string address to number	-	OK
inet_ntoa converts valid numeric address to string	-	OK
inet_ntoa ignores NULLs	-	OK
inet_aton ignores NULLs	-	OK
inet_aton fails when fed arbitrary strings	-	FAILED
	Assertion failed. Expected: 'Error: near line 2: Passed a malformed IP address', Actual: 'Runtime error near line 2: Passed a malformed IP address'
inet_aton returns unsigned integers	-	OK
inet_aton handles 0.0.0.0	-	OK
inet_aton handles 255.255.255.255	-	OK
make: *** [Makefile:27: test] Error 1

Thanks for making an extension that's stood the test of time! :-)