gnome-control-center/panels/info-overview/test-info-cleanup.c
Bastien Nocera 6b97d27ea3 info-cleanup: Add test for info-cleanup
To make it easier to see whether our changes had the intended effect.
2022-12-02 13:11:13 +00:00

18 lines
305 B
C

#include <locale.h>
#include <info-cleanup.h>
int main (int argc, char **argv)
{
g_autofree char *str = NULL;
setlocale (LC_ALL, "");
if (argc != 2) {
g_print ("Usage: %s DEVICE-NAME\n", argv[0]);
return 1;
}
str = info_cleanup (argv[1]);
g_print ("%s ➯ %s\n", argv[1], str);
return 0;
}