diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-05-31 03:31:17 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-05-31 03:31:17 +0000 |
commit | 09eef106ea2dab08733b263bf23494d2aadb0e0c (patch) | |
tree | 9ddbf4ad1b62381e48cc315aaba0e5f43720ff22 /gdb | |
parent | 345fa3f6243df33b694e3530c5cd94ee3ce4c616 (diff) | |
download | gdb-09eef106ea2dab08733b263bf23494d2aadb0e0c.zip gdb-09eef106ea2dab08733b263bf23494d2aadb0e0c.tar.gz gdb-09eef106ea2dab08733b263bf23494d2aadb0e0c.tar.bz2 |
gdb/testsuite/
Accept the new Linux kernel "t (tracing stop)" string.
* gdb.threads/watchthreads-reorder.c (thread1_func, thread2_func):
Update comment.
(state_wait) <T (tracing stop)>: New.
(main): Update the state_wait expect string.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/watchthreads-reorder.c | 15 |
2 files changed, 19 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index fd2abdb..c96b4e0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2010-05-31 Jan Kratochvil <jan.kratochvil@redhat.com> + + Accept the new Linux kernel "t (tracing stop)" string. + * gdb.threads/watchthreads-reorder.c (thread1_func, thread2_func): + Update comment. + (state_wait) <T (tracing stop)>: New. + (main): Update the state_wait expect string. + 2010-05-28 Pedro Alves <pedro@codesourcery.com> * limits.c, limits.exp: Delete files. diff --git a/gdb/testsuite/gdb.threads/watchthreads-reorder.c b/gdb/testsuite/gdb.threads/watchthreads-reorder.c index b8ecde3..5d3bde3 100644 --- a/gdb/testsuite/gdb.threads/watchthreads-reorder.c +++ b/gdb/testsuite/gdb.threads/watchthreads-reorder.c @@ -99,7 +99,7 @@ thread1_func (void *unused) rwatch_store = thread1_rwatch; - /* Be sure the "T (tracing stop)" test can proceed for both threads. */ + /* Be sure the "t (tracing stop)" test can proceed for both threads. */ timed_mutex_lock (&terminate_mutex); i = pthread_mutex_unlock (&terminate_mutex); assert (i == 0); @@ -125,7 +125,7 @@ thread2_func (void *unused) rwatch_store = thread2_rwatch; - /* Be sure the "T (tracing stop)" test can proceed for both threads. */ + /* Be sure the "t (tracing stop)" test can proceed for both threads. */ timed_mutex_lock (&terminate_mutex); i = pthread_mutex_unlock (&terminate_mutex); assert (i == 0); @@ -211,6 +211,13 @@ state_wait (pid_t process, const char *wanted) do { state = proc_string (filename, "State:\t"); + + /* torvalds/linux-2.6.git 464763cf1c6df632dccc8f2f4c7e50163154a2c0 + has changed "T (tracing stop)" to "t (tracing stop)". Make the GDB + testcase backward compatible with older Linux kernels. */ + if (strcmp (state, "T (tracing stop)") == 0) + state = "t (tracing stop)"; + if (strcmp (state, wanted) == 0) { free (filename); @@ -336,9 +343,9 @@ main (int argc, char **argv) { /* s390x-unknown-linux-gnu will fail with "R (running)". */ - state_wait (thread1_tid, "T (tracing stop)"); + state_wait (thread1_tid, "t (tracing stop)"); - state_wait (thread2_tid, "T (tracing stop)"); + state_wait (thread2_tid, "t (tracing stop)"); } cleanup (); |