summaryrefslogtreecommitdiff
path: root/tests/test-wcrtomb-w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-wcrtomb-w32.c')
-rw-r--r--tests/test-wcrtomb-w32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-wcrtomb-w32.c b/tests/test-wcrtomb-w32.c
index 4be9a0df..d275ec46 100644
--- a/tests/test-wcrtomb-w32.c
+++ b/tests/test-wcrtomb-w32.c
@@ -319,10 +319,12 @@ main (int argc, char *argv[])
if (result == 77)
{
+ if (test_exit_status != EXIT_SUCCESS)
+ return test_exit_status;
fprintf (stderr, "Skipping test: found no locale with codepage %d\n",
codepage);
}
- return result;
+ return (result ? result : test_exit_status);
}
#else