File: twice.svtest

package info (click to toggle)
dovecot 1%3A2.3.4.1-5%2Bdeb10u6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 48,648 kB
  • sloc: ansic: 500,433; makefile: 7,372; sh: 5,592; cpp: 1,555; perl: 303; python: 73; xml: 44; pascal: 27
file content (20 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (15)
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}";
	}
}