diff options
Diffstat (limited to 'tests/scripts/functions/realpath')
-rw-r--r-- | tests/scripts/functions/realpath | 39 |
1 files changed, 25 insertions, 14 deletions
diff --git a/tests/scripts/functions/realpath b/tests/scripts/functions/realpath index 720af8b..9b503b4 100644 --- a/tests/scripts/functions/realpath +++ b/tests/scripts/functions/realpath @@ -20,18 +20,10 @@ ifneq ($(realpath /),/) $(error ) endif -ifneq ($(realpath ///),/) - $(error ) -endif - ifneq ($(realpath /.),/) $(error ) endif -ifneq ($(realpath ///.),/) - $(error ) -endif - ifneq ($(realpath /./),/) $(error ) endif @@ -44,10 +36,6 @@ ifneq ($(realpath /..),/) $(error ) endif -ifneq ($(realpath ///..),/) - $(error ) -endif - ifneq ($(realpath /../),/) $(error ) endif @@ -63,8 +51,31 @@ endif .PHONY: all all: ; @: ', -'', -''); + '', + ''); + +# On Windows platforms, "//" means something special. So, don't do these +# tests there. + +if ($port_type ne 'W32') { + run_make_test(' +ifneq ($(realpath ///),/) + $(error ) +endif + +ifneq ($(realpath ///.),/) + $(error ) +endif + +ifneq ($(realpath ///..),/) + $(error ) +endif + +.PHONY: all +all: ; @:', + '', + ''); +} # This tells the test driver that the perl test script executed properly. |