summaryrefslogtreecommitdiff
path: root/t/helper/test-pcre2-config.c
blob: 5258fdddba0eb36829c04216fbb71b1a196810d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "test-tool.h"
#include "cache.h"
#include "grep.h"

int cmd__pcre2_config(int argc, const char **argv)
{
	if (argc == 2 && !strcmp(argv[1], "has-PCRE2_MATCH_INVALID_UTF")) {
		int value = PCRE2_MATCH_INVALID_UTF;
		return !value;
	}
	return 1;
}