realpath
来自「Linux 下的编译工具」· 代码 · 共 83 行
TXT
83 行
# -*-perl-*-$description = "Test the realpath functions.";$details = "";run_make_test('ifneq ($(realpath .),$(CURDIR)) $(error )endififneq ($(realpath ./),$(CURDIR)) $(error )endififneq ($(realpath .///),$(CURDIR)) $(error )endififneq ($(realpath /),/) $(error )endififneq ($(realpath /.),/) $(error )endififneq ($(realpath /./),/) $(error )endififneq ($(realpath /.///),/) $(error )endififneq ($(realpath /..),/) $(error )endififneq ($(realpath /../),/) $(error )endififneq ($(realpath /..///),/) $(error )endififneq ($(realpath . /..),$(CURDIR) /) $(error )endif.PHONY: allall: ; @:', '', '');# On Windows platforms, "//" means something special. So, don't do these# tests there.if ($port_type ne 'W32') { run_make_test('ifneq ($(realpath ///),/) $(error )endififneq ($(realpath ///.),/) $(error )endififneq ($(realpath ///..),/) $(error )endif.PHONY: allall: ; @:', '', '');}# This tells the test driver that the perl test script executed properly.1;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?