Problem writing python tests without installing

Robert Lupton the Good
Thu Nov 10 13:15:00 GMT 2011

When running the testsuite, the python files that are sourced are apparently e.g.
rather than
although the binary is as expected gdb/gdb

The files appear to be installed by "make install".  This is another manifestation of the problem that you cannot apparently work on the gdb python code without first installing it (away from it's cvs home -- but that can be faked with a link...)

Is there a proper way to work around this?


P.S. I wasted a lot of time on this... the final trick was 
	runtest -v -v -v
	gdb_test_no_output "python import gdb.printing" 
	gdb_test_no_output "python raise RuntimeError(gdb.printing.__file__)" 
to get the path.  Sigh.

More information about the Gdb mailing list