summaryrefslogtreecommitdiff
path: root/build/pymake/tests/commandmodifiers.mk
blob: 8440462f32642fffc0a7fc59e7c8e32be3a5d2f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
define COMMAND
$(1)
 	$(1)

endef

all:
	$(call COMMAND,@true #TEST-FAIL)
	$(call COMMAND,-exit 4)
	$(call COMMAND,@-exit 1 # TEST-FAIL)
	$(call COMMAND,-@exit 1 # TEST-FAIL)
	$(call COMMAND,+exit 0)
	$(call COMMAND,+-exit 1)
	$(call COMMAND,@+exit 0 # TEST-FAIL)
	$(call COMMAND,+@exit 0 # TEST-FAIL)
	$(call COMMAND,-+@exit 1 # TEST-FAIL)
	$(call COMMAND,+-@exit 1 # TEST-FAIL)
	$(call COMMAND,@+-exit 1 # TEST-FAIL)
	$(call COMMAND,@+-@+-exit 1 # TEST-FAIL)
	$(call COMMAND,@@++exit 0 # TEST-FAIL)
	@echo TEST-PASS