--- a/test/make/UtilsForTests.gmk Tue Apr 02 11:37:11 2019 +0200
+++ b/test/make/UtilsForTests.gmk Tue Oct 24 10:41:45 2017 +0200
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
@@ -29,11 +29,16 @@
# 1 - Tested value
# 2 - Exepected value
# 3 - Error message
-define assert-equals
- ifneq ($$(strip $1),$$(strip $2))
- $$(error $3 - Expected >$$(strip $2)< - Got >$$(strip $1)<)
- endif
-endef
+AssertEquals = \
+ $(if $(call equals, $(strip $1), $(strip $2)), , \
+ $(info FAILURE: $3) \
+ $(info Expected: >$(strip $2)<) \
+ $(info Actual: >$(strip $1)<) \
+ $(error $3) \
+ )
+
+CreateFile = $(shell $(MKDIR) -p $(call ShellQuote, $(dir $1)) \
+ && $(TOUCH) $(call ShellQuote, $1))
# On macosx, file system timestamps only have 1 second resultion so must add
# sleeps to properly test dependencies.