summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/gettext-8-prg.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-12-09 19:15:59 +0900
committerDaiki Ueno <ueno@gnu.org>2014-12-09 19:15:59 +0900
commit9bfdd35d030eaee11185dc10a0fde84bb6d42f3d (patch)
treeeadceaf4030b05253d4432c73659a9f4abc8b552 /gettext-tools/tests/gettext-8-prg.c
parent842a0af8672c724ca411af7f55fea564d38e21af (diff)
downloadexternal_gettext-9bfdd35d030eaee11185dc10a0fde84bb6d42f3d.zip
external_gettext-9bfdd35d030eaee11185dc10a0fde84bb6d42f3d.tar.gz
external_gettext-9bfdd35d030eaee11185dc10a0fde84bb6d42f3d.tar.bz2
tests: Fix the last change to gettext-8-prg.c
* gettext-8-prg.c: Include <assert.h>. (main): Check return value of 'gettext'.
Diffstat (limited to 'gettext-tools/tests/gettext-8-prg.c')
-rw-r--r--gettext-tools/tests/gettext-8-prg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gettext-tools/tests/gettext-8-prg.c b/gettext-tools/tests/gettext-8-prg.c
index a0de03a..7edd016 100644
--- a/gettext-tools/tests/gettext-8-prg.c
+++ b/gettext-tools/tests/gettext-8-prg.c
@@ -23,6 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <assert.h>
#if HAVE_GETRLIMIT && HAVE_SETRLIMIT
# include <sys/types.h>
@@ -76,7 +77,7 @@ main ()
translated = gettext (msg);
free (msg);
- free (translated);
+ assert (translated != NULL);
return 0;
}