2007-12-08 Jan Kratochvil * lib/gdb.exp: Refuse to run as root. --- ./gdb/testsuite/lib/gdb.exp 30 Oct 2007 19:23:18 -0000 1.92 +++ ./gdb/testsuite/lib/gdb.exp 8 Dec 2007 19:12:00 -0000 @@ -26,6 +26,14 @@ if {$tool == ""} { exit 2 } +set uidfile [open "|id -u" r]; +gets $uidfile uid +catch {close $uidfile} +if {$uid == 0} { + send_error "Root privileges give false results, run as a regular user!\n" + exit 2 +} + load_lib libgloss.exp global GDB