summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-09-15 13:11:45 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-09-15 13:11:45 +0100
commitb0cefb417d01c6dcb87cc6bafe9c19b98c690c9d (patch)
tree8c793f1dabf571bbf5c2b6b0f77483bf8d5af392 /tests
parent90b7c53b70dda9a131cf13beb5d1e77cc41534f7 (diff)
syntax: Use STREQ/STRNEQ in place of strcmp.
Found by 'make syntax-check'.
Diffstat (limited to 'tests')
-rw-r--r--tests/regressions/rhbz790721.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressions/rhbz790721.c b/tests/regressions/rhbz790721.c
index 844631ff..7d5c266c 100644
--- a/tests/regressions/rhbz790721.c
+++ b/tests/regressions/rhbz790721.c
@@ -184,7 +184,7 @@ start_thread (void *vi)
* building code which is what this regression test is designed to
* spot.
*/
- if (strcmp (error, "child process died unexpectedly") != 0) {
+ if (STRNEQ (error, "child process died unexpectedly")) {
fprintf (stderr, "rhbz790721: [thread %d]: error: %s\n", thread_id, error);
*(int *)vi = -1;
pthread_exit (vi);