summaryrefslogtreecommitdiffstats
path: root/pigeonhole/tests/extensions/include/twice.svtest
blob: 5cd5da21463ee8e4ae18ee0e2759367067b4462d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "vnd.dovecot.testsuite";
require "include";
require "variables";

global "result";

set "result" "ONE";

test "Twice included" {
	include "twice-1";
	include "twice-2";

	if string "${result}" "ONE TWO THREE" {
		test_fail "duplicate include failed";
	}

	if not string "${result}" "ONE TWO THREE TWO" {
		test_fail "unexpected result: ${result}";
	}
}