Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Oct 31, 2012, at 6:50 AM, Derek Atkins warl...@mit.edu wrote: John Ralls jra...@ceridwen.us writes: So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? I'm also building out of tree. I remember I had to make a softlink to the xml test file from the source directory to the build directory before the tests worked. This may have to be corrected in the build scripts. Ah, that's the likely culprit. There's an XML file that's loaded by the XML backend, and the test will program will crash if it can't find the file. Before my last round of changes the test program didn't even try to load because the xml backend wasn't loaded. There weren't any asserts to check that it had, so it would always pass without actually testing anything. Odd, though, that you're getting that weird error message instead of the assert message from checking for backend errors right after trying to load the file. Perhaps change the test to use ${srcdir}/... A little more involved than that, because the test file name was #defined inside the C files, but now fixed in r22511. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Oct 31, 2012, at 9:34 AM, Derek Atkins de...@ihtfp.com wrote: - Reply message - From: Alex Aycinena alex.aycin...@gmail.com Date: Wed, Oct 31, 2012 12:18 PM John, Just out of curiousity, do you know of any way to run the tests under gdb to step through them and see exactly where they fail? Since they are run from within make I've never been able to figure out how to do that. You need to modify the script to exec gdb $program .. No, don't do that. That's a real PITA, because the script gets rewritten every time you fix something. Do this instead: ../../../../libtool --mode=execute gdb test-backend-dbi You could save some thinking and typing by export LT=`pwd`/libtool from your top build directory and then you can do $LT --mode=execute gdb test-backend-dbi after cd-ing to the test directory. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Fri, Nov 2, 2012 at 3:35 PM, John Ralls jra...@ceridwen.us wrote: On Oct 31, 2012, at 9:34 AM, Derek Atkins de...@ihtfp.com wrote: - Reply message - From: Alex Aycinena alex.aycin...@gmail.com Date: Wed, Oct 31, 2012 12:18 PM John, Just out of curiousity, do you know of any way to run the tests under gdb to step through them and see exactly where they fail? Since they are run from within make I've never been able to figure out how to do that. You need to modify the script to exec gdb $program .. No, don't do that. That's a real PITA, because the script gets rewritten every time you fix something. Do this instead: ../../../../libtool --mode=execute gdb test-backend-dbi You could save some thinking and typing by export LT=`pwd`/libtool from your top build directory and then you can do $LT --mode=execute gdb test-backend-dbi after cd-ing to the test directory. Regards, John Ralls John, Thanks, your latest commit fixed make check and I tried the above and it worked. I'll use it in the future. Regards, Alex ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
John Ralls jra...@ceridwen.us writes: So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? I'm also building out of tree. I remember I had to make a softlink to the xml test file from the source directory to the build directory before the tests worked. This may have to be corrected in the build scripts. Ah, that's the likely culprit. There's an XML file that's loaded by the XML backend, and the test will program will crash if it can't find the file. Before my last round of changes the test program didn't even try to load because the xml backend wasn't loaded. There weren't any asserts to check that it had, so it would always pass without actually testing anything. Odd, though, that you're getting that weird error message instead of the assert message from checking for backend errors right after trying to load the file. Perhaps change the test to use ${srcdir}/... Regards, John Ralls -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH warl...@mit.eduPGP key available ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Tue, Oct 30, 2012 at 5:35 PM, John Ralls jra...@ceridwen.fremont.ca.us wrote: On Oct 30, 2012, at 1:58 PM, Geert Janssens janssens-ge...@telenet.be wrote: On 30-10-12 20:24, Alex Aycinena wrote: John, On Sun, Oct 28, 2012 at 5:43 PM, John Ralls jra...@ceridwen.us wrote: And what is check-local? check-local is not what I entered but what was played back on my terminal from 'make check'; see it below in your own output after the line for changing directory to `/home/john/gnucash/src/backend/dbi/test': john@Wheezy:~/gnucash$ cd src/backend/dbi john@Wheezy:~/gnucash/src/backend/dbi$ make check-local make: *** No rule to make target `check-local'. Stop. But for make check: john@Wheezy:~/gnucash/src/backend/dbi$ make check Making check in . make[1]: Entering directory `/home/john/gnucash/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi' Making check in test make[1]: Entering directory `/home/john/gnucash/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/john/gnucash/src/backend/dbi/test' TEST: test-backend-dbi... (pid=15469) /backend/dbi/store_and_reload/sqlite:OK /backend/dbi/store_and_reload/mysql: OK /backend/dbi/store_and_reload/postgres: OK /backend/dbi/gnc dbi test sqlite (business): OK PASS: test-backend-dbi make[2]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' john@Wheezy:~/gnucash/src/backend/dbi$ What version of glib do you have? I'm on Fedora 15: glib is 2-2.28.8 Regards, John Ralls I'm on trunk at revision 22473. I use a different build directory from the source. When I 'make' it builds fine but: [gnucash-dev@HPdv5Fedora gnucash-clean-build]$ cd src/backend/dbi [gnucash-dev@HPdv5Fedora dbi]$ make check Making check in . make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' Making check in test make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=19279) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Sa7cac1ca5d4e400c39daba9fbb1c29e2 /bin/sh: line 1: 19278 Terminated gtester --verbose test-backend-dbi make[2]: *** [test] Error 143 make[2]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make: *** [check-recursive] Error 1 [gnucash-dev@HPdv5Fedora dbi]$ So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? I'm also building out of tree. I remember I had to make a softlink to the xml test file from the source directory to the build directory before the tests worked. This may have to be corrected in the build scripts. Ah, that's the likely culprit. There's an XML file that's loaded by the XML backend, and the test will program will crash if it can't find the file. Before my last round of changes the test program didn't even try to load because the xml backend wasn't loaded. There weren't any asserts to check that it had, so it would always pass without actually testing anything. Odd, though, that you're getting that weird error message instead of the assert message from checking for backend errors right after trying to load the file. Regards, John Ralls John, Just out of curiousity, do you know of any way to run the tests under gdb to step through them and see exactly where they fail? Since they are run from within make I've never been able to figure out how to do that. Alex ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
You need to modify the script to exec gdb $program .. -derek Sent from my HTC smartphone - Reply message - From: Alex Aycinena alex.aycin...@gmail.com To: John Ralls jra...@ceridwen.fremont.ca.us Cc: gnucash-devel@gnucash.org Subject: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests Date: Wed, Oct 31, 2012 12:18 PM On Tue, Oct 30, 2012 at 5:35 PM, John Ralls jra...@ceridwen.fremont.ca.us wrote: On Oct 30, 2012, at 1:58 PM, Geert Janssens janssens-ge...@telenet.be wrote: On 30-10-12 20:24, Alex Aycinena wrote: John, On Sun, Oct 28, 2012 at 5:43 PM, John Ralls jra...@ceridwen.us wrote: And what is check-local? check-local is not what I entered but what was played back on my terminal from 'make check'; see it below in your own output after the line for changing directory to `/home/john/gnucash/src/backend/dbi/test': john@Wheezy:~/gnucash$ cd src/backend/dbi john@Wheezy:~/gnucash/src/backend/dbi$ make check-local make: *** No rule to make target `check-local'. Stop. But for make check: john@Wheezy:~/gnucash/src/backend/dbi$ make check Making check in . make[1]: Entering directory `/home/john/gnucash/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi' Making check in test make[1]: Entering directory `/home/john/gnucash/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/john/gnucash/src/backend/dbi/test' TEST: test-backend-dbi... (pid=15469) /backend/dbi/store_and_reload/sqlite:OK /backend/dbi/store_and_reload/mysql: OK /backend/dbi/store_and_reload/postgres: OK /backend/dbi/gnc dbi test sqlite (business): OK PASS: test-backend-dbi make[2]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' john@Wheezy:~/gnucash/src/backend/dbi$ What version of glib do you have? I'm on Fedora 15: glib is 2-2.28.8 Regards, John Ralls I'm on trunk at revision 22473. I use a different build directory from the source. When I 'make' it builds fine but: [gnucash-dev@HPdv5Fedora gnucash-clean-build]$ cd src/backend/dbi [gnucash-dev@HPdv5Fedora dbi]$ make check Making check in . make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' Making check in test make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=19279) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Sa7cac1ca5d4e400c39daba9fbb1c29e2 /bin/sh: line 1: 19278 Terminated gtester --verbose test-backend-dbi make[2]: *** [test] Error 143 make[2]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make: *** [check-recursive] Error 1 [gnucash-dev@HPdv5Fedora dbi]$ So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? I'm also building out of tree. I remember I had to make a softlink to the xml test file from the source directory to the build directory before the tests worked. This may have to be corrected in the build scripts. Ah, that's the likely culprit. There's an XML file that's loaded by the XML backend, and the test will program will crash if it can't find the file. Before my last round of changes the test program didn't even try to load because the xml backend wasn't loaded. There weren't any asserts to check that it had, so it would always pass without actually testing anything. Odd, though, that you're getting that weird error message instead of the assert message from checking for backend errors right after trying to load the file. Regards, John Ralls John, Just out of curiousity, do you know of any way to run the tests under gdb to step through them and see exactly where they fail? Since they are run from within make I've never been able to figure out how to do that. Alex ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
John, On Sun, Oct 28, 2012 at 5:43 PM, John Ralls jra...@ceridwen.us wrote: And what is check-local? check-local is not what I entered but what was played back on my terminal from 'make check'; see it below in your own output after the line for changing directory to `/home/john/gnucash/src/backend/dbi/test': john@Wheezy:~/gnucash$ cd src/backend/dbi john@Wheezy:~/gnucash/src/backend/dbi$ make check-local make: *** No rule to make target `check-local'. Stop. But for make check: john@Wheezy:~/gnucash/src/backend/dbi$ make check Making check in . make[1]: Entering directory `/home/john/gnucash/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi' Making check in test make[1]: Entering directory `/home/john/gnucash/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/john/gnucash/src/backend/dbi/test' TEST: test-backend-dbi... (pid=15469) /backend/dbi/store_and_reload/sqlite:OK /backend/dbi/store_and_reload/mysql: OK /backend/dbi/store_and_reload/postgres: OK /backend/dbi/gnc dbi test sqlite (business): OK PASS: test-backend-dbi make[2]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' john@Wheezy:~/gnucash/src/backend/dbi$ What version of glib do you have? I'm on Fedora 15: glib is 2-2.28.8 Regards, John Ralls I'm on trunk at revision 22473. I use a different build directory from the source. When I 'make' it builds fine but: [gnucash-dev@HPdv5Fedora gnucash-clean-build]$ cd src/backend/dbi [gnucash-dev@HPdv5Fedora dbi]$ make check Making check in . make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' Making check in test make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=19279) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Sa7cac1ca5d4e400c39daba9fbb1c29e2 /bin/sh: line 1: 19278 Terminated gtester --verbose test-backend-dbi make[2]: *** [test] Error 143 make[2]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make: *** [check-recursive] Error 1 [gnucash-dev@HPdv5Fedora dbi]$ So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? By the way, I'm able to read a sqlite gnucash file and read an xml file and save it to sqlite with this build, so sqlite seems to be fine. Regards, Alex ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On 30-10-12 20:24, Alex Aycinena wrote: John, On Sun, Oct 28, 2012 at 5:43 PM, John Ralls jra...@ceridwen.us wrote: And what is check-local? check-local is not what I entered but what was played back on my terminal from 'make check'; see it below in your own output after the line for changing directory to `/home/john/gnucash/src/backend/dbi/test': john@Wheezy:~/gnucash$ cd src/backend/dbi john@Wheezy:~/gnucash/src/backend/dbi$ make check-local make: *** No rule to make target `check-local'. Stop. But for make check: john@Wheezy:~/gnucash/src/backend/dbi$ make check Making check in . make[1]: Entering directory `/home/john/gnucash/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi' Making check in test make[1]: Entering directory `/home/john/gnucash/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/john/gnucash/src/backend/dbi/test' TEST: test-backend-dbi... (pid=15469) /backend/dbi/store_and_reload/sqlite:OK /backend/dbi/store_and_reload/mysql: OK /backend/dbi/store_and_reload/postgres: OK /backend/dbi/gnc dbi test sqlite (business): OK PASS: test-backend-dbi make[2]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' john@Wheezy:~/gnucash/src/backend/dbi$ What version of glib do you have? I'm on Fedora 15: glib is 2-2.28.8 Regards, John Ralls I'm on trunk at revision 22473. I use a different build directory from the source. When I 'make' it builds fine but: [gnucash-dev@HPdv5Fedora gnucash-clean-build]$ cd src/backend/dbi [gnucash-dev@HPdv5Fedora dbi]$ make check Making check in . make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' Making check in test make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=19279) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Sa7cac1ca5d4e400c39daba9fbb1c29e2 /bin/sh: line 1: 19278 Terminated gtester --verbose test-backend-dbi make[2]: *** [test] Error 143 make[2]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make: *** [check-recursive] Error 1 [gnucash-dev@HPdv5Fedora dbi]$ So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? I'm also building out of tree. I remember I had to make a softlink to the xml test file from the source directory to the build directory before the tests worked. This may have to be corrected in the build scripts. Geert ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Oct 30, 2012, at 1:58 PM, Geert Janssens janssens-ge...@telenet.be wrote: On 30-10-12 20:24, Alex Aycinena wrote: John, On Sun, Oct 28, 2012 at 5:43 PM, John Ralls jra...@ceridwen.us wrote: And what is check-local? check-local is not what I entered but what was played back on my terminal from 'make check'; see it below in your own output after the line for changing directory to `/home/john/gnucash/src/backend/dbi/test': john@Wheezy:~/gnucash$ cd src/backend/dbi john@Wheezy:~/gnucash/src/backend/dbi$ make check-local make: *** No rule to make target `check-local'. Stop. But for make check: john@Wheezy:~/gnucash/src/backend/dbi$ make check Making check in . make[1]: Entering directory `/home/john/gnucash/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi' Making check in test make[1]: Entering directory `/home/john/gnucash/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/john/gnucash/src/backend/dbi/test' TEST: test-backend-dbi... (pid=15469) /backend/dbi/store_and_reload/sqlite:OK /backend/dbi/store_and_reload/mysql: OK /backend/dbi/store_and_reload/postgres: OK /backend/dbi/gnc dbi test sqlite (business): OK PASS: test-backend-dbi make[2]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' john@Wheezy:~/gnucash/src/backend/dbi$ What version of glib do you have? I'm on Fedora 15: glib is 2-2.28.8 Regards, John Ralls I'm on trunk at revision 22473. I use a different build directory from the source. When I 'make' it builds fine but: [gnucash-dev@HPdv5Fedora gnucash-clean-build]$ cd src/backend/dbi [gnucash-dev@HPdv5Fedora dbi]$ make check Making check in . make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi' Making check in test make[1]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=19279) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Sa7cac1ca5d4e400c39daba9fbb1c29e2 /bin/sh: line 1: 19278 Terminated gtester --verbose test-backend-dbi make[2]: *** [test] Error 143 make[2]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' make: *** [check-recursive] Error 1 [gnucash-dev@HPdv5Fedora dbi]$ So in order to make sure there wasn't something bad in my build tree, I made new 'gnucash-clean' and 'gnucash-clean-build' directories, checked-out a fresh set of sources and rebuilt it. make worked, but I got the same result with make check. Does 'Error 143' mean anything to you? I'm also building out of tree. I remember I had to make a softlink to the xml test file from the source directory to the build directory before the tests worked. This may have to be corrected in the build scripts. Ah, that's the likely culprit. There's an XML file that's loaded by the XML backend, and the test will program will crash if it can't find the file. Before my last round of changes the test program didn't even try to load because the xml backend wasn't loaded. There weren't any asserts to check that it had, so it would always pass without actually testing anything. Odd, though, that you're getting that weird error message instead of the assert message from checking for backend errors right after trying to load the file. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
John, Is 'make check' working for you? It is failing for me on a clean build in src/backend/dbi/test/ for r22473. Regards, Alex On Sat, Oct 27, 2012 at 4:30 PM, John Ralls jra...@code.gnucash.org wrote: Author: jralls Date: 2012-10-27 19:30:40 -0400 (Sat, 27 Oct 2012) New Revision: 22464 Trac: http://svn.gnucash.org/trac/changeset/22464 Modified: gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c Log: Enable and correct all store-and-reload basic tests Replacing printed errors and do_test with proper asserts. There's a fake do_test to let it compile with the still unfixed but also unused safe save and version check tests. ___ gnucash-patches mailing list gnucash-patc...@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-patches ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Oct 28, 2012, at 4:39 PM, Alex Aycinena alex.aycin...@gmail.com wrote: John, Is 'make check' working for you? It is failing for me on a clean build in src/backend/dbi/test/ for r22473. Alex, Well, it did just before I committed those changes. But I was working in trunk, and r22473 is 2.4. Which one are you testing? What failed? Regards, John Ralls On Sat, Oct 27, 2012 at 4:30 PM, John Ralls jra...@code.gnucash.org wrote: Author: jralls Date: 2012-10-27 19:30:40 -0400 (Sat, 27 Oct 2012) New Revision: 22464 Trac: http://svn.gnucash.org/trac/changeset/22464 Modified: gnucash/trunk/src/backend/dbi/test/test-dbi-stuff.c Log: Enable and correct all store-and-reload basic tests Replacing printed errors and do_test with proper asserts. There's a fake do_test to let it compile with the still unfixed but also unused safe save and version check tests. ___ gnucash-patches mailing list gnucash-patc...@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-patches ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Sun, Oct 28, 2012 at 4:57 PM, John Ralls jra...@ceridwen.fremont.ca.us wrote: On Oct 28, 2012, at 4:39 PM, Alex Aycinena alex.aycin...@gmail.com wrote: John, Is 'make check' working for you? It is failing for me on a clean build in src/backend/dbi/test/ for r22473. Alex, Well, it did just before I committed those changes. But I was working in trunk, and r22473 is 2.4. Which one are you testing? What failed? Regards, John Ralls John, I'm building trunk and get: make check-local make[5]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=30770) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Scd1bd5bd6e2fd10cabb43b7fd783133b /bin/sh: line 1: 30769 Terminated gtester --verbose test-backend-dbi make[5]: *** [test] Error 143 Regards, Alex ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: r22464 - gnucash/trunk/src/backend/dbi/test - Enable and correct all store-and-reload basic tests
On Oct 28, 2012, at 5:05 PM, Alex Aycinena alex.aycin...@gmail.com wrote: On Sun, Oct 28, 2012 at 4:57 PM, John Ralls jra...@ceridwen.fremont.ca.us wrote: On Oct 28, 2012, at 4:39 PM, Alex Aycinena alex.aycin...@gmail.com wrote: John, Is 'make check' working for you? It is failing for me on a clean build in src/backend/dbi/test/ for r22473. Alex, Well, it did just before I committed those changes. But I was working in trunk, and r22473 is 2.4. Which one are you testing? What failed? Regards, John Ralls John, I'm building trunk and get: make check-local make[5]: Entering directory `/home/gnucash-dev/svncheckouts/gnucash-clean-build/src/backend/dbi/test' TEST: test-backend-dbi... (pid=30770) /backend/dbi/store_and_reload/sqlite:FAIL GTester: last random seed: R02Scd1bd5bd6e2fd10cabb43b7fd783133b /bin/sh: line 1: 30769 Terminated gtester --verbose test-backend-dbi make[5]: *** [test] Error 143 And what is check-local? john@Wheezy:~/gnucash$ cd src/backend/dbi john@Wheezy:~/gnucash/src/backend/dbi$ make check-local make: *** No rule to make target `check-local'. Stop. But for make check: john@Wheezy:~/gnucash/src/backend/dbi$ make check Making check in . make[1]: Entering directory `/home/john/gnucash/src/backend/dbi' make[1]: Nothing to be done for `check-am'. make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi' Making check in test make[1]: Entering directory `/home/john/gnucash/src/backend/dbi/test' make check-local make[2]: Entering directory `/home/john/gnucash/src/backend/dbi/test' TEST: test-backend-dbi... (pid=15469) /backend/dbi/store_and_reload/sqlite:OK /backend/dbi/store_and_reload/mysql: OK /backend/dbi/store_and_reload/postgres: OK /backend/dbi/gnc dbi test sqlite (business): OK PASS: test-backend-dbi make[2]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' make[1]: Leaving directory `/home/john/gnucash/src/backend/dbi/test' john@Wheezy:~/gnucash/src/backend/dbi$ What version of glib do you have? Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel