X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fcolor_content.c;h=99627546131d507c16225b6287f4188c3b3a3cd6;hp=bb1f076af4f40f1be0bf32a51810b54937a56187;hb=1ddfa997c0965852dbdc738aa6d92c0cd0975f3b;hpb=eccca377f55c70b12e3e92621d94d1e1c1fcfb7d diff --git a/test/color_content.c b/test/color_content.c index bb1f076a..99627546 100644 --- a/test/color_content.c +++ b/test/color_content.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2018,2019 Free Software Foundation, Inc. * + * Copyright 2018-2020,2022 Thomas E. Dickey * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: color_content.c,v 1.10 2019/01/21 01:05:44 tom Exp $ + * $Id: color_content.c,v 1.14 2022/05/21 20:00:04 tom Exp $ */ #define NEED_TIME_H @@ -118,6 +118,7 @@ random_color(void) static void setup_test(void) { + setlocale(LC_ALL, ""); initscr(); cbreak(); noecho(); @@ -251,7 +252,6 @@ int main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) { int i; - int repeat; while ((i = getopt(argc, argv, "f:il:npr:sx")) != -1) { switch (i) { @@ -305,6 +305,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) } } } else { + int repeat; for (repeat = 0; repeat < r_opt; ++repeat) { run_test(); @@ -327,5 +328,6 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) finish_test(); } + free(expected); ExitProgram(EXIT_SUCCESS); }