Skip to content

Commit

Permalink
Add testcase/posix_var.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
shinh committed Apr 27, 2016
1 parent a8fafa4 commit 03fa345
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def normalize_kati_log(output)
if todos.include?('c-ninja') && ckati && via_ninja
expected_failure = true
end
if todos.include?('c-exec') && ckati && !via_ninja
expected_failure = true
end
if todos.include?('ninja') && via_ninja
expected_failure = true
end
Expand Down
22 changes: 22 additions & 0 deletions testcase/posix_var.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# TODO(go|c-exec): Fix

MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]')

# GNU make 3.82 has this feature though.
ifeq ($(MAKEVER),3)

test:
echo test skipped

else

# TODO: Fix
#$(info $(shell echo foo))
SHELL := echo
#$(info $(shell echo bar))
.POSIX:
#$(info $(shell echo baz))
test:
foobar

endif

0 comments on commit 03fa345

Please sign in to comment.