general3

来自「make debug tool. You can use this tool t」· 代码 · 共 59 行

TXT
59
字号
#                                                                    -*-perl-*-$description = "\This tests random features of the parser that need to be supported, andwhich have either broken at some point in the past or seem likely tobreak.";$makefile2 = &get_tmpfile;open(MAKEFILE,"> $makefile");# The contents of the Makefile ...print MAKEFILE <<EOF;# We want to allow both empty commands _and_ commands that resolve to empty.EMPTY =.PHONY: all a1 a2 a3 a4all: a1 a2 a3 a4a1:;a2:\ta3:;\$(EMPTY)a4:\t\$(EMPTY)\# Non-empty lines that expand to nothing should also be ignored.STR =     \# Some spacesTAB =   \t  \# A TAB and some spaces\$(STR)\$(STR) \$(TAB)EOFclose(MAKEFILE);&run_make_with_options($makefile,"",&get_logfile);$answer = "$make_name: Nothing to be done for `all'.\n";&compare_output($answer,&get_logfile(1));# TEST 2# Make sure files without trailing newlines are handled properly.open(MAKEFILE, "> $makefile2");print MAKEFILE "all:;\@echo FOO = \$(FOO)\nFOO = foo";close(MAKEFILE);&run_make_with_options($makefile2,"",&get_logfile);$answer = "FOO = foo\n";&compare_output($answer,&get_logfile(1));1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?