summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormandyke <mandyke@gmail.com>2014-07-28 04:55:44 +0000
committermandyke <mandyke@gmail.com>2014-07-28 04:55:44 +0000
commit06c39e65d6cbef9348574b993dacc526f06fb516 (patch)
tree2f539d49d93fb333deca38b197930de28dbae4b2
parent09bd43bfbc5f4ffb07d3473de9ece3f1163da22d (diff)
downloaddistcc-git-06c39e65d6cbef9348574b993dacc526f06fb516.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.
-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, '')