VirtualBox

Ignore:
Timestamp:
Mar 12, 2018 7:32:29 PM (7 years ago)
Author:
bird
Message:

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/tests/scripts/features/default_names

    r2596 r3138  
    1111close(MAKEFILE);
    1212
    13 # DOS/WIN32 platforms preserve case, but Makefile is the same file as makefile.
    14 # Just test what we can here (avoid Makefile versus makefile test).
     13# Create another makefile called "makefile"
     14open(MAKEFILE,"> makefile");
     15print MAKEFILE "SECOND: ; \@echo It chose makefile\n";
     16close(MAKEFILE);
    1517
    16 if ($port_type eq 'UNIX') {
    17   # Create another makefile called "makefile"
    18   open(MAKEFILE,"> makefile");
    19   print MAKEFILE "SECOND: ; \@echo It chose makefile\n";
    20   close(MAKEFILE);
     18# DOS/WIN32/MacOSX platforms are case-insensitive / case-preserving, so
     19# Makefile is the same file as makefile.  Just test what we can here.
     20
     21my $case_sensitive = 0;
     22if (! -f 'Makefile') {
     23    # Create another makefile called "Makefile"
     24    $case_sensitive = 1;
     25    open(MAKEFILE,"> Makefile");
     26    print MAKEFILE "THIRD: ; \@echo It chose Makefile\n";
     27    close(MAKEFILE);
    2128}
    2229
    23 # Create another makefile called "Makefile"
    24 open(MAKEFILE,"> Makefile");
    25 print MAKEFILE "THIRD: ; \@echo It chose Makefile\n";
    26 close(MAKEFILE);
     30run_make_with_options("","",&get_logfile);
     31compare_output("It chose GNUmakefile\n",&get_logfile(1));
     32unlink($makefile);
    2733
     34run_make_with_options("","",&get_logfile);
     35compare_output("It chose makefile\n",&get_logfile(1));
     36unlink("makefile");
    2837
    29 &run_make_with_options("","",&get_logfile);
    30 &compare_output("It chose GNUmakefile\n",&get_logfile(1));
    31 unlink $makefile;
    32 
    33 if ($port_type eq 'UNIX') {
    34   &run_make_with_options("","",&get_logfile);
    35   &compare_output("It chose makefile\n",&get_logfile(1));
    36   unlink "makefile";
     38if ($case_sensitive) {
     39    run_make_with_options("","",&get_logfile);
     40    compare_output("It chose Makefile\n",&get_logfile(1));
     41    unlink("Makefile");
    3742}
    3843
    39 &run_make_with_options("","",&get_logfile);
    40 &compare_output("It chose Makefile\n",&get_logfile(1));
    41 unlink "Makefile";
     441;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette