summaryrefslogtreecommitdiff
path: root/localedata/tests-mbwc
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-08-17 15:41:22 +0000
committerAndreas Jaeger <aj@suse.de>2000-08-17 15:41:22 +0000
commit3a93e252185f933d7e9faceeec1eb5de79b9466f (patch)
treefe48e2d5eb3ea1e3720c71de296563c747143eae /localedata/tests-mbwc
parente64911d1d6b3539c69d9cfe4fdaa5841e4f28cc8 (diff)
* tests-mbwc/tst_funcs.h (TST_IF_RETURN): Only test errno if it
should have a value. 2000-08-17 Andreas Jaeger <aj@suse.de> * tests-mbwc/tst_funcs.h (TST_IF_RETURN): Only test errno if it should have a value.
Diffstat (limited to 'localedata/tests-mbwc')
-rw-r--r--localedata/tests-mbwc/tst_funcs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/localedata/tests-mbwc/tst_funcs.h b/localedata/tests-mbwc/tst_funcs.h
index e72154fa74..177ca09567 100644
--- a/localedata/tests-mbwc/tst_funcs.h
+++ b/localedata/tests-mbwc/tst_funcs.h
@@ -134,7 +134,9 @@ extern int result (FILE * fp, char res, const char *func, const char *loc,
#define TST_IF_RETURN(_s_func_) \
if (err_flg == 1) \
{ \
- if (errno_save == err_exp) \
+ /* If no error occured, errno is undefined. Here we check only if \
+ errno has the right value if it should have one. */ \
+ if ((err_exp == 0) || (errno_save == err_exp)) \
{ \
result (fp, C_SUCCESS, _s_func_, locale, rec+1, seq_num+1, 1, \
MS_PASSED); \