about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorLeonhard Holz <leonhard.holz@web.de>2014-11-12 17:10:21 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2014-11-12 17:10:21 +0530
commitfffa1cf8a7f95830d488d5fc6bf73cb9599143f4 (patch)
tree8b403ababaaa45686715211c3f2bb8fc68bd173f /string
parentfb89b46d1d1cdbaaec1af918a3a3e1bd72a164e0 (diff)
downloadglibc-fffa1cf8a7f95830d488d5fc6bf73cb9599143f4.tar.gz
glibc-fffa1cf8a7f95830d488d5fc6bf73cb9599143f4.tar.xz
glibc-fffa1cf8a7f95830d488d5fc6bf73cb9599143f4.zip
Fix tst-strcoll-overflow returning before timeout (BZ #17506)
Modifies the test examination in test-skeleton.c so that a test can be
successful if it is interrupted or it returns uninterrupted with the
expected status. For this both EXPECTED_SIGNAL and EXPECTED_STATUS
have to be set, as is done in tst-strcoll-overflow.c.
Diffstat (limited to 'string')
-rw-r--r--string/tst-strcoll-overflow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string/tst-strcoll-overflow.c b/string/tst-strcoll-overflow.c
index e7a43ea844..0d764afff6 100644
--- a/string/tst-strcoll-overflow.c
+++ b/string/tst-strcoll-overflow.c
@@ -57,5 +57,6 @@ do_test (void)
 
 #define TIMEOUT 300
 #define EXPECTED_SIGNAL SIGALRM
+#define EXPECTED_STATUS 0
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"