This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] testsuite: gdb.server/ext-run.exp: Fix for systemd
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 5 Dec 2011 19:32:32 +0100
- Subject: [obv] testsuite: gdb.server/ext-run.exp: Fix for systemd
Hi,
on Fedora 16 (+assuming F-15, F-14 was PASSing) there is:
gdb_expect_list pattern: /pid +user +command/
info os processes
pid user command cores
1 root /bin/systemd --log-level info --log-target syslog-or-kmsg --system --dump-core --show-status=1 --sysv-console=1 --deserialize 36 0
gdb_expect_list pattern: /1 +root +[/a-z]*init/
(gdb) FAIL: gdb.server/ext-run.exp: get process list (pattern 2)
on F-14 there was:
1 root /sbin/init 3
Under heavy load F-16 also resulted in:
+FAIL: gdb.server/ext-run.exp: get process list (pattern 2) (timeout)
+ERROR: internal buffer is full.
+UNRESOLVED: gdb.server/ext-run.exp: kill
which is either also resolved or it is an unrelated problem, I will watch for
it with high loads in the future.
Checked in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2011-12/msg00033.html
--- src/gdb/testsuite/ChangeLog 2011/12/03 20:20:28 1.2962
+++ src/gdb/testsuite/ChangeLog 2011/12/05 18:27:43 1.2963
@@ -1,3 +1,8 @@
+2011-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.server/ext-run.exp (get process list): Accept also systemd
+ as PID 1.
+
2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves <pedro@codesourcery.com>
--- src/gdb/testsuite/gdb.server/ext-run.exp 2011/03/08 12:46:52 1.14
+++ src/gdb/testsuite/gdb.server/ext-run.exp 2011/12/05 18:27:44 1.15
@@ -55,7 +55,7 @@
# This is done in a way to avoid the timeout that can occur from
# applying .* regexp to large output.
gdb_test_sequence "info os processes" "get process list" \
- { "pid +user +command" "1 +root +\[/a-z\]*init" }
+ { "pid +user +command" "1 +root +\[/a-z\]*(init|systemd)" }
}
}