mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
test: make testsuite conform with POSIX 3.206 (#13639)
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
This commit is contained in:
parent
d96d66a560
commit
d199b61d81
14 changed files with 12 additions and 13 deletions
3
.gitattributes
vendored
Normal file
3
.gitattributes
vendored
Normal 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
|
|
@ -1 +1 @@
|
||||||
Imported text
|
Imported text
|
||||||
|
|
|
@ -18,7 +18,7 @@ import imports.makedeps_a;
|
||||||
|
|
||||||
// Test import expression
|
// Test import expression
|
||||||
enum text = import("makedeps-import.txt");
|
enum text = import("makedeps-import.txt");
|
||||||
static assert(text == "Imported text");
|
static assert(text == "Imported text\x0a");
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ enum selection = selectImport(false);
|
||||||
|
|
||||||
// Test CTFE import expression
|
// Test CTFE import expression
|
||||||
enum text = import(selection);
|
enum text = import(selection);
|
||||||
static assert(text == "Imported text");
|
static assert(text == "Imported text\x0a");
|
||||||
|
|
||||||
void func()
|
void func()
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,7 +19,7 @@ import imports.makedeps_a;
|
||||||
|
|
||||||
// Test import expression
|
// Test import expression
|
||||||
enum text = import("makedeps-import.txt");
|
enum text = import("makedeps-import.txt");
|
||||||
static assert(text == "Imported text");
|
static assert(text == "Imported text\x0a");
|
||||||
|
|
||||||
void func()
|
void func()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@ import imports.makedeps_a;
|
||||||
// Test mixin import expression
|
// Test mixin import expression
|
||||||
enum text = import("makedeps-import-codemixin.txt");
|
enum text = import("makedeps-import-codemixin.txt");
|
||||||
mixin(text);
|
mixin(text);
|
||||||
static assert(text2 == "Imported text");
|
static assert(text2 == "Imported text\x0a");
|
||||||
|
|
||||||
void func()
|
void func()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Imported text
|
Imported text
|
||||||
|
|
|
@ -15,7 +15,7 @@ import makedeps_a;
|
||||||
|
|
||||||
// Test import expression
|
// Test import expression
|
||||||
enum text = import("makedeps-import.txt");
|
enum text = import("makedeps-import.txt");
|
||||||
static assert(text == "Imported text");
|
static assert(text == "Imported text\x0a");
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ import makedeps_a;
|
||||||
|
|
||||||
// Test import expression
|
// Test import expression
|
||||||
enum text = import("makedeps-import.txt");
|
enum text = import("makedeps-import.txt");
|
||||||
static assert(text == "Imported text");
|
static assert(text == "Imported text\x0a");
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,7 +15,7 @@ import makedeps_a;
|
||||||
|
|
||||||
// Test import expression
|
// Test import expression
|
||||||
enum text = import("makedeps-import.txt");
|
enum text = import("makedeps-import.txt");
|
||||||
static assert(text == "Imported text");
|
static assert(text == "Imported text\x0a");
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,4 +12,3 @@ void main(string[] args)
|
||||||
{
|
{
|
||||||
dmd_coverDestPath(args[1]);
|
dmd_coverDestPath(args[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,4 +59,3 @@ int main(string[] args)
|
||||||
test3();
|
test3();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,3 @@
|
||||||
|{
|
|{
|
||||||
1| dmd_coverDestPath(args[1]);
|
1| dmd_coverDestPath(args[1]);
|
||||||
|}
|
|}
|
||||||
|
|
|
||||||
|
|
|
@ -59,4 +59,3 @@
|
||||||
1| test3();
|
1| test3();
|
||||||
1| return 0;
|
1| return 0;
|
||||||
|}
|
|}
|
||||||
|
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue