test: make testsuite conform with POSIX 3.206 (#13639)

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
This commit is contained in:
Luís Ferreira 2022-02-14 09:14:07 +00:00 committed by GitHub
parent d96d66a560
commit d199b61d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 12 additions and 13 deletions

3
.gitattributes vendored Normal file
View file

@ -0,0 +1,3 @@
# The following text files requires strict end of line rules
test/compilable/extra-files/makedeps-import.txt text eol=lf
test/fail_compilation/extra-files/makedeps-import.txt text eol=lf

View file

@ -18,7 +18,7 @@ import imports.makedeps_a;
// Test import expression
enum text = import("makedeps-import.txt");
static assert(text == "Imported text");
static assert(text == "Imported text\x0a");
void main()
{

View file

@ -26,7 +26,7 @@ enum selection = selectImport(false);
// Test CTFE import expression
enum text = import(selection);
static assert(text == "Imported text");
static assert(text == "Imported text\x0a");
void func()
{

View file

@ -19,7 +19,7 @@ import imports.makedeps_a;
// Test import expression
enum text = import("makedeps-import.txt");
static assert(text == "Imported text");
static assert(text == "Imported text\x0a");
void func()
{

View file

@ -18,7 +18,7 @@ import imports.makedeps_a;
// Test mixin import expression
enum text = import("makedeps-import-codemixin.txt");
mixin(text);
static assert(text2 == "Imported text");
static assert(text2 == "Imported text\x0a");
void func()
{

View file

@ -15,7 +15,7 @@ import makedeps_a;
// Test import expression
enum text = import("makedeps-import.txt");
static assert(text == "Imported text");
static assert(text == "Imported text\x0a");
void main()
{

View file

@ -15,7 +15,7 @@ import makedeps_a;
// Test import expression
enum text = import("makedeps-import.txt");
static assert(text == "Imported text");
static assert(text == "Imported text\x0a");
void main()
{

View file

@ -15,7 +15,7 @@ import makedeps_a;
// Test import expression
enum text = import("makedeps-import.txt");
static assert(text == "Imported text");
static assert(text == "Imported text\x0a");
void main()
{

View file

@ -12,4 +12,3 @@ void main(string[] args)
{
dmd_coverDestPath(args[1]);
}

View file

@ -59,4 +59,3 @@ int main(string[] args)
test3();
return 0;
}

View file

@ -12,4 +12,3 @@
|{
1| dmd_coverDestPath(args[1]);
|}
|

View file

@ -59,4 +59,3 @@
1| test3();
1| return 0;
|}
|