From dad14c216d7f1118ad9c51b98fbbce81e094d4d2 Mon Sep 17 00:00:00 2001 From: "mandyke@gmail.com" Date: Mon, 28 Jul 2014 04:55:44 +0000 Subject: 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 --- test/testdistcc.py | 11 ++--------- 1 file 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