summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormandyke@gmail.com <mandyke@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2014-07-28 04:55:44 +0000
committermandyke@gmail.com <mandyke@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2014-07-28 04:55:44 +0000
commitdad14c216d7f1118ad9c51b98fbbce81e094d4d2 (patch)
tree2f539d49d93fb333deca38b197930de28dbae4b2
parentdc2028d6ae7ae0cabb5247a7523bcbc37f0c71cf (diff)
downloaddistcc-dad14c216d7f1118ad9c51b98fbbce81e094d4d2.tar.gz
Really ignore userconf in Gdb_Case
An empty .gdbinit in the current directory is not effective at avoiding ~/.gdbinit. Use the option -nh instead. git-svn-id: http://distcc.googlecode.com/svn/trunk@792 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-xtest/testdistcc.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/testdistcc.py b/test/testdistcc.py
index f6a8e4f..b391c95 100755
--- a/test/testdistcc.py
+++ b/test/testdistcc.py
@@ -1212,13 +1212,6 @@ class Gdb_Case(CompileHello_Case):
pass
return "src/testtmp.c"
- def createSource(self):
- CompileHello_Case.createSource(self)
- # Create an empty .gdbinit, so that we insulate this test
- # from the ~/.gdbinit file of the user running it.
- filename = ".gdbinit"
- _Touch(filename)
-
def compiler(self):
"""Command for compiling and linking."""
return _gcc + " -g ";
@@ -1283,7 +1276,7 @@ class Gdb_Case(CompileHello_Case):
f = open('gdb_commands', 'w')
f.write('break main\nrun\nnext\n')
f.close()
- out, errs = self.runcmd("gdb --batch --command=gdb_commands "
+ out, errs = self.runcmd("gdb -nh --batch --command=gdb_commands "
"link/%s </dev/null" % testtmp_exe)
# Normally we expect the stderr output to be empty.
# But, due to gdb bugs, some versions of gdb will produce a
@@ -1317,7 +1310,7 @@ class Gdb_Case(CompileHello_Case):
gcc_preprocessing_preserves_pwd = (error_rc == 0);
if ((pump_mode and _IsElf('./%s' % testtmp_exe))
or ((not pump_mode) and gcc_preprocessing_preserves_pwd)):
- out, errs = self.runcmd("gdb --batch --command=../gdb_commands "
+ out, errs = self.runcmd("gdb -nh --batch --command=../gdb_commands "
"./%s </dev/null" % testtmp_exe)
if errs and errs not in ignorable_error_messages:
self.assert_equal(errs, '')